trueto display an additional Chromecast button in the top-left corner of the player.
fixedto display the minimized player fixed to the bottom of the browser while casting.
- trackColor (text color and opacity)
- trackBackground (background color and opacity)
- trackEdgeType (NONE, OUTLINE, DROP_SHADOW, RAISED, DEPRESSED)
- trackEdgeColor
- trackScale (text Scale)
- trackFont (font family) - (SANS_SERIF, MONOSPACED_SANS_SERIF, SERIF, MONOSPACED_SERIF, CURSIVE, SMALL_CAPITALS)
- trackStyle (font style) - (NORMAL, BOLD, BOLD_ITALIC, ITALIC)
player.chromecast({ trackColor:"#FFCC00FF", trackBackground:"#000000FF", tracksEdgeType:"NONE", trackScale:0.8, trackFont:"SERIF", trackStyle:"ITALIC" });
player.chromecast({metaTitle: 'Video title',metaSubtitle: 'Video subtitle',metaThumbnail: 'thumbnail URL'});
player.chromecast({ui:'fixed'});
player.chromecast({adBreaks: adsArray});
{id: 'bc0',position: 30,vastAdsRequest:{adTagUrl: 'https://castsample.com/vast?rand=' + Math.floor(Math.random()* 10000)}}
{id: 'bc1',position:240,whenSkippable: 5, //optionalcontentUrl: 'https://domain.com/mediat/path-to-playlist.m3u8',contentType: 'application/x-mpegURL',clickThroughUrl: 'https://domain.com/clicktroughtracking', //optionaltitle: 'Video ad title' //optional}
player.on('chromecastConnected', function() {console.log('connected');});player.on('chromecastDisconnected', function() {console.log('disconnected');});