Skip to content

Instantly share code, notes, and snippets.

@vizbee
vizbee / 1-Instructions.md
Last active May 6, 2024 21:39
Snippets for Gradle dependency update for Vizbee Android TV and Vizbee Fire TV SDK

Instructions

Add Repository

  • Step 1 - add Vizbee repository in the list of repositories to your project's build.gradle file as shown in below snippet.

Add Dependency

  • Step 1 - Configure product flavors(if not already configured) inside the android block of the app module level build.gradle file.
  • Step 2 - Add right Vizbee SDK dependency for each product flavor under the dependencies block as shown in below snippets.
@vizbee
vizbee / 1-Instructions.md
Last active May 6, 2024 21:38
Snippets for Gradle dependency update for Vizbee Android TV SDK

Instructions

  • Step 1 - add Vizbee repository in the list of repositories to your project's build.gradle file.
  • Step 2 - add Vizbee SDK as a dependency in your app's build.gradle file

Template Files for Vizbee iOS SDK Integration

  • Create a folder called vizbee within your app's code repository
  • Copy the following template files into the vizbee folder
    • VizbeeWrapper.swift - The main wrapper for all Vizbee SDK APIs
    • VizbeeAppAdapter.swift - The template for writing Vizbee AppAdapter
    • VizbeeSigninAdapter.swift - The template for writing Vizbee signin adapter.
    • VizbeeAnalyticsHandler.swift - The template for hooking in all custom analytics handlers.
  • VizbeeStyles.swift - The template file for customizing Vizbee style to your app's brand requirements.
@vizbee
vizbee / VizbeeFireTVAndAndroidTVIntegrationTroubleshooting.md
Last active April 5, 2024 09:50
Vizbee Fire TV and Android TV SDK Integration Troubleshooting
@vizbee
vizbee / 1_VizbeeAndroidTVAndFireTVSDKJavaTemplateFiles.md
Last active April 5, 2024 09:47
Template files for setting up and starting Vizbee Android TV and Fire TV SDK integration in Java

Instructions

  • Step 1 - create a folder called 'vizbee' in your code repository.
  • Step 2 - copy the three files VizbeeWrapper.java, MyVizbeeAppAdapter.java and MyVizbeeMediaConverter.java to this vizbee folder.
  • Step 3 - Rename and update the three files as best suited for your Android TV and Fire TV app.
@vizbee
vizbee / VizbeeFireTVAndAndroidTVSDKSnippets.md
Last active April 5, 2024 09:47
Snippets for Vizbee Fire TV and Android TV Receiver SDK

Snippets for Vizbee Fire TV and Android TV SDK

Initialization

With the snippets in this section, you should be able to launch and connect to your Android TV or Fire TV app from the mobile device.

Build Setup

Scenario Snippet
1 [Fire TV Only] Update build.gradle settings to include Vizbee Fire TV SDK dependency for your app Gradle

Instructions

  • Step 1 - identify the callback in your code that is invoked on load of a new video
  • Step 2 - invoke the setPlayerAdapter as soon as video begins to load (Setting the adapter soon after invoking playback ensures that there are no race conditions with previously playing video and also the mobile user sees all initial loading/buffering states on mobile UI)
@vizbee
vizbee / 1_VizbeeRokuSDKCodeSetupInstructions.md
Last active March 13, 2024 23:41
Instructions to setup Roku SDK

Instructions

SDK Download, Unzip and Setup

  • Step 1 - Download the latest version of Vizbee Roku SDK.
  • Step 2 - Create vizbee folder within the components directory of your Roku app.
  • Step 3 - Copy the sdk folder and VizbeeClient.brs from the unzipped VizbeeSDK and add it under the vizbee folder of your Roku app.

Impl folder

This step is required only if you are copying the VizbeeSDK first time. This step is NOT required if you are simply updating the version of the SDK.

  • Step 4 - Copy the impl folder from the unzipped VizbeeSDK and add it under the vizbee folder of your Roku app.
@vizbee
vizbee / 1_VizbeeRokuSDKVizbeeManagerUserSigninInstructions.md
Last active March 13, 2024 23:38
Instructions to implement home signIn in Roku SDK

Context

  • The primary component to be implemented in Vizbee Roku integration is the MyVizbeeManager.brs which inherits from VizbeeManager.brs
  • For HomeSign, we need to implement the onEvent callback in this MyVizbeeManager.brs

Instructions

  • Step 1 - Open the MyVizbeeManager.brs file in the vizbee folder of your app's repo.
  • Step 2 - Implement the onEvent method to handle the tv.vizbee.homesign.signin event using the snippets provided below.
@vizbee
vizbee / VizbeeRokuSDKVizbeeManagerStartVideo.md
Last active March 13, 2024 23:38
Instructions to implement video playback methods in Roku SDK

Instructions

  • Step 1 - Open the MyVizbeeManager.brs file under the vizbee -> impl folder of your app's repo.
  • Step 2 - Implement the startVideo method using the snippets provided below.