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

Player stops playing when two consecutive tracks have the same youtube id #79

Open
4www opened this issue Sep 8, 2017 · 2 comments
Open
Labels

Comments

@4www
Copy link
Contributor

4www commented Sep 8, 2017

Exemple: https://radio4000.com/imperium/tracks/-KsTR9ydrI_cy-7_6d81

Behavior should be:

  • either play the track again
  • either play next track

Thoughts?

@oskarrough
Copy link
Member

Tricky. YouTube's loadVideoById() does nothing if the id is already loaded.

Sounds like we have to make a check for this and instead seekTo(0) in the youtube-player. But that doesn't feel good. Is there a better way?

@4www 4www added the bug label Oct 10, 2017
@oskarrough
Copy link
Member

I just did this for a certain TV project. Ended up saying: if youtube id is identical, clear the video id, wait a milisecond, set video id again.

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

No branches or pull requests

2 participants