Video casting
What you learn
You're instantiating DIVA Player in your web front-end 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 the
<video id>and the related<settings URL>. -
Deploy the DIVA Chromecast Receiver:
- Ask access to the repo https://github.com/deltatre-vxp/diva-chromecast-receiver
- Clone the repo
- Follow the readm.me instructions to enable media analytics
- Build the Chromecast app
- Deploy the Chromecast app on the client's public cloud - ask DevOps support
- Register the Chromecast app URL into the Google Cast Dashboard by following Google instructions.
-
The settings file must contain the
videoCastsection:"videoCast": {"castBackground": "https://example.com/fe/images/chromecastbg.png","chromecastAppID": "<chromecastAppID>","isAirplayEnabled": true}where
castBackground(optional): The URL of the image to use as backgroungchromecastAppID(mandatory): Chromecast app Id from the client's Google Cast account that you used to register the Chromecast app.isAirplayEnabled(optional): It enables the Airplay cast.
Note: Ask your video engineers team the settings file URL.
Instantiation
Chapters code
There's no code to add to the Basic instantiation code.