Open DJ-PD opened 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'}];
The poster issue should be solved by https://github.com/silvermine/videojs-chromecast/pull/45
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](https://user-images.githubusercontent.com/46725109/140096878-c86e7b4b-8d52-4930-8bb9-6a1de54d8923.png)