raingart / Nova-YouTube-extension

Apache License 2.0
199 stars 9 forks source link

When "Playlist Autoplay Control" is set to "Play", adding a second video to a front page queue will result in its immediate playback #146

Closed tyaremco closed 5 months ago

tyaremco commented 5 months ago

This situation occurs when building a queue from the youtube.com homepage. No issue when building a queue from a video page.

  1. Enable Playlist Autoplay Control with Default State to Play.
  2. open youtube.com in a new tab
  3. Add a video to the queue using the Add to Queue hover button.
  4. Add a second video to the queue in the same way

Result: After a few seconds, the second video will begin automatically playing in the miniplayer. The first video in the queue will also have been skipped.

Expected behaviour: Autoplay (of the second video) should only occur if the first video is done playing. In this case, the first video was never played but only queued.

tyaremco commented 5 months ago

I noticed there is time constraint.: The erroneous autoplayback starts if the second video is queued within 4 seconds after the first one, at least on my machine. If you wait longer, everything functions normally.

This is apparently not related to Nova; could reproduce even when its disabled.