silvermine / videojs-chromecast

MIT License
148 stars 75 forks source link

Audio streaming missing poster #108

Open DJ-PD opened 2 years ago

DJ-PD commented 2 years ago

Streaming audio and it works good but how to set a background image i.e poster on the TV? Right now it just a black background with a text "Default Media Receiver" up in top left corner followed by a blue play progress bar down on the screen. See attached picture. image

DJ-PD commented 2 years ago

I wasn't able to find an example or more detail information how to setup a proper music Ui. After 40h of reading and testing where I never got the "chromecast.requestCustomDataFn" function to add a background poster etc. However after register and paid a fee to google dev to be able to register and create an application ID and thereafter add below lines of code into the main videojs-chromecast JavaScript file (from line 3432) the music Ui finally appear. mediaInfo.metadata = new chrome.cast.media.GenericMediaMetadata(); mediaInfo.metadata.metadataType = 3; mediaInfo.metadata.title = 'YOUR TiTLE'; mediaInfo.metadata.artist = 'YOUR ARTiST'; mediaInfo.metadata.images = [{'url': 'https://POSTER.com/img/YOUR-POSTER.jpg'}]; image

kontrollanten commented 2 years ago

The poster issue should be solved by https://github.com/silvermine/videojs-chromecast/pull/45