Remote Playback API does not detect my Chromecast TV
Reported by
mathieu0...@gmail.com,
May 17 2018
|
||||||
Issue descriptionChrome Version : M66.0.3359.181 (Android) OS Version: OS X 10.13.4 URLs (if applicable) : https://www.streamwave.be What steps will reproduce the problem? 1. Login on the website with Chrome for Android (you can use your google account). 2. Click an a album, play a track. 3. Wait for the cast button to show off in the "mini-player" at the bottom of the page. What is the expected result? Remote playback work as intended What happens instead of that? I was trying to use this api on `Chrome M66` to send audio content on a remote device but it does not detect my `Chromecast tv`. Other API such as Presentation API detect it. I was wondering it there's a bug or something else. Btw, if I force with `audioElement.remote.prompt()`, it throws me an error that says: `A prompt is already shown` but that's not the case. Anyway here's the code that track the device availability : ```js // audio is an audio element monitorRemoteAvailability (audio) { return audio.remote.watchAvailability(available => { console.log(available); // false even if my chromecast tv is available this.updateChromecastButtonDisplay({available}); }).catch(_ => { // assume remote device is available this.updateChromecastButtonDisplay({available: true}); }) } ``` Thanks for your help. Please provide any additional information below. Attach a screenshot if possible. UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
,
May 18 2018
Thanks for filing the issue! As mentioned in steps to reproduce the problem in comment#0, this issue seems to be related to Android, hence adding appropriate OS label to it. Thanks!
,
May 18 2018
This demo works fine on Chrome Canary for Android but not on Chrome Stable for Android. https://beaufortfrancois.github.io/sandbox/media/remote-playback.html
,
May 18 2018
Well, I was able to make the demo work on Chrome stable for Android. I also did my own demo and this works. The problem in my case I expose at the beginning is that I use Google shaka-player to stream media. It seems that Remote Playback API does not work with buffer in the src attribute.
,
May 19 2018
With Shaka Player, what error message do you get?
,
May 20 2018
I do not get any error from shaka-player. Just unable to prompt and any chromecast device is not detected.
,
May 20 2018
Do you get no error message from the Remote Playback API?
,
May 20 2018
,
May 20 2018
From the Remote Playback API, I do not get any error as I watch availability. The availability callback just return false. If I force the prompt to show off, there's no prompt that are shown. If I try a second time, I've got an error that says : A prompt is already being shown for this media element even if that's not the case. The problem seems related with MSE as shaka-player use it.
,
May 25 2018
Any help ?
,
May 25 2018
Shaka uses MSE and Remote Playback API is not compatible with MSE so it makes sense that the API currently says that there are no available devices. However, the prompt call should show something even if it has no devices. Assigning to tguilbert@ as they are looking into another prompt issue that may likely be related.
,
May 25 2018
Thanks ! Any plan to support MSE in Remote Playback API in the future ?
,
May 25 2018
We would like to do this but we have no concrete plans to do so. If you have your own UI, I would suggest to have a hidden <video> with a src= video that will be used for cast. You can use it for discovery and for the prompt and show a cast button in your original video based on this.
,
Oct 29
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by dtapu...@chromium.org
, May 17 2018