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 TV not detected #117

Closed
Mathieu-R opened this issue May 17, 2018 · 5 comments
Closed

Chromecast TV not detected #117

Mathieu-R opened this issue May 17, 2018 · 5 comments

Comments

@Mathieu-R
Copy link

Mathieu-R commented May 17, 2018

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 :

// 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.

@mounirlamouri
Copy link
Member

Thank you for the feedback @Mathieu-R. In general, it's better to use Chromium's bug tracker if you see a bug in Chromium. In your case, it looks a lot like your issue may be related to https://crbug.com/837299 If it's not the case, can you file a new bug using https://crbug.com/new?

@Mathieu-R
Copy link
Author

Thanks. It does not seem to be related to the existing issus. I filed a new bug.

@Mathieu-R
Copy link
Author

@mounirlamouri
Well, I was able to make this demo (https://beaufortfrancois.github.io/sandbox/media/remote-playback.html) work on Chrome stable (and canary) for Android.
I also did my own demo and this works.

The problem in my case 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.

@mounirlamouri
Copy link
Member

At the moment, the Remote Playback API on Chrome Android does not handle MSE videos. It sounds that this may be the issue you are facing here. Can you put the link to the Chromium bug in this issue so we can continue the discussion over there?

@Mathieu-R
Copy link
Author

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