===============================
This Google Cast sample app demonstrates how to play streaming media on Chromecast. It uses Cast Receiver SDK and Media Player Library. It highlights the following features.
- Streaming: MPEG-DASH, Smooth Streaming, and HLS
- DRM: PlayReady and Widevine
- Enable live streaming
- Captions: external and in-stream
- Adaptive Bitrate Streaming
- DRM license server URL
- Support for customData of license server
- CORS and cross domain policy
It uses a Chrome sender but can work with Android or iOS senders as well. It also provides debugging features with live code snippets to illustrate interactions between sender and receiver.
- Get a Chromecast device
- Install the latest Chrome browser
- Install the latest Chrome Cast extension
See the developer guide and release notes at https://developers.google.com/cast/ for more details.
- Put all files on your own server
- Change YOUR_APP_ID in sender.js to your own application ID from your Developer Console account
- Point your corresponding receiver app URL to http://[YOUR_SERVER_LOCATION]/CastMediaPlayerStreamingDRM/mpl.html
- Open a browser and point to your page at http://[YOUR_SERVER_LOCATION]/CastMediaPlayerStreamingDRM/index.html
- Launch app and load/play media streams
- Show/hide receiver debug message on TV
- Show/hide video element on TV
- Watch the following in debug message on receiver side:
- App State, Sender Count, Media Element State and Volume State
- Cast Receiver Manager Message
- Media Manager Message
- Message Bus Message
- Media Player: Host, Protocol, Player
- Streams: bitrates, codecs, captions
- Experiment on sender side:
- Load different streams of DASH, SS with/without DRM
- Note some of the streams require CORS before they can play
- Load your own custom stream
- Enable live streaming
- Set max bandwidth
- Set custom license server URL
- Enable/Disable captions
- Set license customData
- Inspect code snippets live
##Documentation
- Cast Chrome Sender APIs: http://developers.google.com/cast/docs/chrome_sender
- Cast Receiver APIs: https://developers.google.com/cast/docs/reference/receiver/
- Cast Receiver Media Player Library: https://developers.google.com/cast/docs/reference/player/
- Design Checklist (http://developers.google.com/cast/docs/design_checklist)
- If you find any issues, please open a bug here on GitHub
How to make contributions? Please read and follow the steps in the CONTRIBUTING.md
License See LICENSE.md
Google Cast Developers Community on Google+ http://goo.gl/TPLDxj