This article describes how to use CDN Load Balancer with Chromecast. The Google Cast SDK enables you to extend your Android, iOS or Chrome app to direct its streaming video and audio to a TV set.
In order for Streamroot to work, you will need to build a custom receiver application.
A custom receiver is an HTML5 app that you host on your own servers and must be implemented using the JavaScript Receiver API.
For more details about how to build a custom receiver application with the Receiver API, refer to Google's Custom Receiver guide.
Install and Set up Streamroot
If you use the default receiver application and do not import any additional player, the shaka player runs behind the hood while using Chromecast. In this case, follow the following steps:
Step 1: Install Streamroot build
<!-- Streamroot plugin -->
<script src="//cdn.streamroot.io/shakaplayer-dna-autowrapper/1/stable/shakaplayer-dna-autowrapper.js"></script>
Step 2: Set up Streamroot
In the HTML <body>
// Streamroot-injected informations
window.streamrootDna = {
streamrootKey: 'YOUR_STREAMROOT_KEY',
dnaConfig: {
compassProperty : 'YOUR_ORCHESTRATOR_PROPERTY'
}
};
Parameter name | Mandatory | Description |
---|---|---|
dnaConfig | No | The object in which you can pass Streamroot options (property, contentIdGenerator, id, etc.). |
YOUR_STREAMROOT_KEY | Yes | The unique Streamroot key that we have assigned to you; make sure it is identical to the one provided in the Account section of your dashboard. |
YOUR_ORCHESTRATOR_PROPERTY | Yes | The name of the Orchestrator Property you want to use. See Step 3 of this page for more details. |
If you use any other player, please refer to our Web Player documentation to integrate and set up the appropriate Streamroot plugin in your custom receiver application.