Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio streaming missing poster #108

Open
DJ-PD opened this issue Nov 3, 2021 · 2 comments
Open

Audio streaming missing poster #108

DJ-PD opened this issue Nov 3, 2021 · 2 comments

Comments

@DJ-PD
Copy link

DJ-PD commented Nov 3, 2021

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
Copy link
Author

DJ-PD commented Dec 29, 2021

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
Copy link
Contributor

The poster issue should be solved by #45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants