Skip to content

ggnull35/CastMediaPlayerStreamingDRM

 
 

Repository files navigation

CastMediaPlayerStreamingDRM

===============================

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.

Setup Instructions

Pre-requisites

  1. Get a Chromecast device
  2. Install the latest Chrome browser
  3. Install the latest Chrome Cast extension

See the developer guide and release notes at https://developers.google.com/cast/ for more details.

Steps to setup:

  1. Put all files on your own server
  2. Change YOUR_APP_ID in sender.js to your own application ID from your Developer Console account
  3. Point your corresponding receiver app URL to http://[YOUR_SERVER_LOCATION]/CastMediaPlayerStreamingDRM/mpl.html
  4. Open a browser and point to your page at http://[YOUR_SERVER_LOCATION]/CastMediaPlayerStreamingDRM/index.html

Instructions:

  • 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

References and How to report bugs

How to make contributions? Please read and follow the steps in the CONTRIBUTING.md

License See LICENSE.md

Google+

Google Cast Developers Community on Google+ http://goo.gl/TPLDxj

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.9%
  • CSS 3.1%