Requirements for Chromecast Integration

Implementing Ooyala Chromecast v.2.0 involves the following requirements:

Prerequisites

SDK Access

The latest version of the Ooyala mobile SDK for Android and/or the Ooyala mobile SDK for iOS from Ooyala Downloads.

Technical Expertise
  • Experience with iOS or Android development.
  • Experience with JavaScript development.
Enablement To enable streaming protocols for processing profiles, please contact Ooyala Tech Support.
Hosting
Note: Please note that these hosting prerequisites do not apply if you are using Ooyala's sample applications, as they are hosted by Ooyala and are CORS enabled.
  • Ooyala does not offer receiver application hosting. You must facilitate your hosting infrastructure for receiver applications. The production receiver must be served over SSL.
  • Set up Cross-Origin Resource Sharing (CORS) enablement on the CDN you use for content serving. For information on how to enable CORS, see "CORS and Chromecast" below.
Registration Register with Google as a developer to get a receiver application ID (this shows the sender application which receiver to send to). The Cast developer license can be found at https://cast.google.com/publish/#/overview. This will register the URL of the receiver app webpage.

CORS and Chromecast

Cross-Origin Resource Sharing (CORS) lets web pages make requests to a domain other than the one from which the page was served; it allows JavaScript to make requests across domain boundaries. Without CORS, this functionality is not available and web pages can run into cross-domain issues when trying to retrieve files, such as closed captions, from another domain.

All resources not hosted by Ooyala (video, audio, images, closed captions, css, js, etc.) that are used with your Chromecast or HTML5-based playback must have the appropriate CORS headers configured. If your resources do not follow the CORS standard, your player will not function correctly and may break when trying to access files across domains.

You must set up CORS enablement on the CDN that you use for content serving. For information on how to enable CORS, see http://enable-cors.org/ or talk to your hosting provider or vendor.

Note: These CORS prerequisites do not apply if you are using only Ooyala-hosted content, as CORS is enabled for all Ooyala-hosted domains.
For additional information, see:

Chromecast Device Registration and Concurrent Stream Limit

The sender application and receiver application are different devices. If you play content on both the sender and receiver devices, the mobile device and Chromecast will both be registered as devices. This typically happens on a play and cast scenario (see Introduction to Chromecast Integration). If the user does a cast and play, which means playback only happens on the Chromecast receiver, then only Chromecast gets registered as a device.

However, for concurrent stream limits, play from a sender and a receiver application is counted as a single concurrent stream. An example of this is if the user does the 'play and cast' scenario from their mobile device, where they play the content on their mobile device, use their mobile device to cast the content to a receiver application, and then continue to watch the content on the receiver. This is counted as one concurrent stream. The same count happens on a 'play and cast' scenario (one concurrent stream counted for play from a sender and a receiver).

해당 내용이 도움 되었습니까?