Skip to content

ChromeCast receiver with dash.js player sample (sender + receiver)

Created by: jeffcunat

Updated version of the ChromeCast sender and receiver sample. Only Chrome sender has been updated for the moment. The sender is able to initiate a cast session, play a stream, pause, seek, mute, change volume, toggle stats on the TV.

The receiver code should be hosted on the dash.js CDN in order to be available as a published app for ChromeCast. => everything inside samples/chromecast/receiver/**

ChromeCast app registering is done on https://cast.google.com/u/2/publish/ Then the APP_ID of the application will have to be changed in the sender sample

https://github.com/Orange-OpenSource/dash.js/blob/0803bf923a4b350a76210abd14c82b7673ccab21/samples/chromecast/sender/js/CastSenderService.js#L3

It is possible to test this sample without deploying the receiver on the CDN following these steps

Further works will come to modify the reference client and the Akamai control bar in order to add a cast button and use the control bar to manage the casted stream.

Feel free to make any suggestions...

Merge request reports