Optional
messageOptional
receiverThe application ID of the Cast application that should be launched when connecting to a Cast receiver. Set this if you want to use your own custom receiver application. If unset, the Bitmovin player cast application is used.
Optional
rejoinSpecifies, whether an existing Cast session shall be re-joined rather than creating a new one when casting starts.
Default is false
.
Optional
prepareCallback providing the possibility to prepare/alter the media info object before it is loaded onto Chromecast receiver app to change its media/source.
Example:
prepareMediaInfo: function(mediaInfo) {
// Signal fMP4 container format for audio and video
mediaInfo.hlsSegmentFormat = chrome.cast.media.HlsSegmentFormat.FMP4;
mediaInfo.hlsVideoSegmentFormat = chrome.cast.media.HlsVideoSegmentFormat.FMP4;
return Promise.resolve(mediaInfo);
}
Note: This callback is only supported with Chromecast v3 (CAF) receivers.
The object representing the media to be loaded on the receiver, see chrome.cast.media.MediaInfo
A promise resloving with the altered object that the player will load on the receiver.
The message namespace for communication of advanced player functionality not covered by the Cast media controls. Only overwrite this if you are implementing your own custom receiver.