benjipott / video.js-chromecast

Use chromecast with videojs html5 player
Other
207 stars 86 forks source link

How do you set chromecast options? #10

Closed ntamblyn closed 7 years ago

ntamblyn commented 8 years ago

How do you set the appId and metadata for this plugin ?

Whenever i try using player.chromecast(); i get the error message that Uncaught TypeError: player.chromecast is not a function.

if i try and add player.chromecast.options.appId = "APP-ID"; i just get a random Generated ID.

Some guidance with this would be much appreciated.

ghost commented 8 years ago

Hello, I have the same issue. Have you figure it out ? There is still not doc.

bilalghouri commented 7 years ago

Same issue.

benjipott commented 7 years ago

you can set it here https://github.com/benjipott/video.js-chromecast/blob/master/src/js/component/control-bar/chromecast-button.js#L59

videojs.('playerId', {
     chromecast :
         appId:'yourAppID'
     }
})