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

Chromecast only giving audio device options #129

Open
clintonbosch opened this issue Jul 27, 2022 · 1 comment
Open

Chromecast only giving audio device options #129

clintonbosch opened this issue Jul 27, 2022 · 1 comment

Comments

@clintonbosch
Copy link

I am not seeing any video devices when selecting to cast my video. I have also tried on various hosted examples and none of them show me video devices (like my TV), only audio devices (like my Google home speaker).
Youtube on the other hand does seem to allow casting to my TV (see screenshot4).

I have tried casting m3u8 (hls) video as well as mp4 and confirmed it is not just a format issue.

Try looking at these examples running video.js and chromecast:
https://codepen.io/DJ-PD/pen/jdWWEg (See screenshot 1)
https://codesandbox.io/s/2wwq9 (See screenshot 2)

I am using videojs-chromecast@1.3.3 and video-js 7.19.2

Screenshots of what I am talking about can be seen here:
https://psa-baobab-temp-eu-west-1.s3.eu-west-1.amazonaws.com/pics/external1.png
https://psa-baobab-temp-eu-west-1.s3.eu-west-1.amazonaws.com/pics/external2.png
https://psa-baobab-temp-eu-west-1.s3.eu-west-1.amazonaws.com/pics/mine.png
https://psa-baobab-temp-eu-west-1.s3.eu-west-1.amazonaws.com/pics/youtube.png

@drsounds
Copy link

I temporary fixed it with an ugly hack where I edited line 184 of the src/js/tech/ChromecastTech.js file from

mediaInfo = new chrome.cast.media.MediaInfo(source.src, source.type),

to

mediaInfo = new chrome.cast.media.MediaInfo(source.src, 'video/mp4'),

(Assuming you use an .mp4 file and (video/mp4 content type).

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

No branches or pull requests

2 participants