Skip to main content

Video casting

What you learn​

You're instantiating DIVA Player in your app and relying on DIVA Back Office as the video streaming source.

The goal of this article is to build the simplest front-end to stream a video from the DIVA Back Office with enabled video casting.

Before starting​

  • Ensure the DIVA Back Office instance you rely on is up and running. Ask your video engineers team <videoId>, <settingsURL>, <languageCountryCode>, <userToken> and <sharedKey>.

  • Deploy the DIVA Chromecast Receiver:

    1. Ask access to the repo https://github.com/deltatre-vxp/diva-chromecast-receiver
    2. Clone the repo
    3. Follow the readm.me instructions to enable media analytics
    4. Build the Chromecast app
    5. Deploy the Chromecast app on the client's public cloud - ask DevOps support
    6. Register the Chromecast app URL into the Google Cast Dashboard by following Google instructions.
  • The settings file must contain the videoCast section:

    "videoCast": {
    "castBackground": "https://example.com/fe/images/chromecastbg.png",
    "chromecastAppID": "<chromecastAppID>",
    "isAirplayEnabled": true
    }

    where

    • castBackground (optional): The URL of the image to use as backgroung
    • chromecastAppID (mandatory): Chromecast app Id from the client's Google Cast account that you used to register the Chromecast app.
    • isAirplayEnabled (optional): Ignored as not Android compatible.

    Note: Ask your video engineers team the settings file URL.

Instantiation​

There's no code to add to the Basic instantiation code.