silvermine / videojs-chromecast

MIT License
147 stars 74 forks source link

Support to add chromecast button outside the control-bar. #144

Closed damanV5 closed 1 year ago

damanV5 commented 1 year ago

Hi, as per now I think there is only one key ie addButtonToControlBar:boolean which decides whether to add the button inside the controlBar or not.

I want to style the chrome-cast-button outside the control-bar which is not possible with modifying the css.

Please let me know if there is already some support related to it.

damanV5 commented 1 year ago

I found that silvermine/chromecast already registers the button with the name 'chromecastButton' .

We just need to add the button; in my case I just did player.addChild('chromecastButton');

It basically adds the button to the root level of the player-html and then can be styled with the help of css.

@yokuze, It would be helpful for others if provided in the documentation.