- From: Mathieu Rousseau via GitHub <sysbot+gh@w3.org>
- Date: Thu, 17 May 2018 08:44:36 +0000
- To: public-secondscreen@w3.org
Mathieu-R has just created a new issue for https://github.com/w3c/remote-playback: == Chromecast TV not detected == Hello, 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. Maybe an error in my code. 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 view or discuss this issue at https://github.com/w3c/remote-playback/issues/117 using your GitHub account
Received on Thursday, 17 May 2018 08:44:39 UTC