Skip to content

Instantly share code, notes, and snippets.

Mobile video player shows a black screen on video cast

Example scenario

When a user cast a video from the mobile's embedded video player, the local video should be paused and the UI overlay "Casting to X" should be displayed on top of the player as long as the casting state is connected. Note that this scenario is applicable for embedded video players that are not full screen video players.

Application code dos and don'ts

DO

Cast icon disappears or appears in unexpected scenarios

Example scenarios

Here are some of the scenarios where the cast icon appears unexpectedly

  1. When there is no network
  2. When the phone has only the mobile data connection (no wifi)

Vizbee SDK concepts

Scenario

Show AppInstall Card with customized app icon.

Steps

  1. Update the Vizbee's style file Vizbee.xml as specified in the below snippet.
  2. Make sure that the custom icon is present in all the resolutions that your app icon exists in.

Example

Scenario

Show AppInstall Card with customized app icon.

Steps

  1. Make sure Vizbee SDK is updated to v6.3.3
  2. Create a new Image Set within app's Assets.xcassets folder and name it as VizbeeAppIcon.
  3. Provide a 1024x1024 resolution image for 3x (leave 1x and 2x as empty).

Example

class BaseAdAdapter {
/*
* setAdStatusGetter
* @description this handler is invoked by SDK to get the ad status.
*/
void setAdStatusGetter(() => [AdStatus]);
/*
* getAdStatusGetter

Instructions

  • Centralized App Ad Status - if your app contains ad started/finished status at a single place you can refer to the below snippet.
  • Decentralized App Ad Status - if your app contains ad started/finished status at different places you can refer to the below snippet.

Instructions

  • Step 1 - create vizbee player adapter by passing player type and player instance as shown below.
  • Step 2 - uncomment and override player handlers shown below as needed for custom behavior.

Instructions

  • Step 1 - create vizbee player adapter by passing player type and player instance as shown below.
  • Step 2 - uncomment and override player handlers shown below as needed for custom behavior.

Instructions

  • Step 1 - create vizbee player adapter by passing player type and player instance as shown below.
  • Step 2 - uncomment and override player handlers shown below as needed for custom behavior.

Instructions

  • Step 1 - create vizbee player adapter by passing player type and player instance as shown below.
  • Step 2 - uncomment and override player handlers shown below as needed for custom behavior.