sync icon indicating copy to clipboard operation
sync copied to clipboard

YouTube Autoplay

Open calzoneman opened this issue 6 years ago • 7 comments

CyTube intentionally pauses when switching videos to allow the player time to buffer. However, the YouTube implementation sets autoplay: 1, then has some legacy hack to wait a split second before pausing due to player race conditions -- it should just not autoplay and manually start playback.

Additionally, when reloading the video or the page in the middle of a video, it should not start as paused.

calzoneman avatar Mar 15 '19 03:03 calzoneman

Reopening. Seems like the fix is not as simple as I thought.

calzoneman avatar Mar 30 '19 19:03 calzoneman

Not sure if it helps but personally for my cytube instance the issue started occuring today when I did git pull after quite some time yesterday. Before the pull it did not happen. I assume you know that already and the bug was unintentionally introduced by a new feature or maybe a change on YT side. Additionally, the issue only occurs for me but someone else I watch YT with does not have the issue. We both have autoplay turned of on YT itself.

DatDraggy avatar Jun 16 '20 11:06 DatDraggy

Which issue are you referring to? This issue is tracking a specific quirk as noted in the OP. Is it the same behavior you're having issues with?

calzoneman avatar Jun 17 '20 01:06 calzoneman

Sorry, I believe I misunderstood the original issue yesterday. What I was refering to was the youtube autoplay function which automatically plays a random recommended video if the queue in sync is empty.

DatDraggy avatar Jun 17 '20 14:06 DatDraggy

Sorry, I believe I misunderstood the original issue yesterday. What I was refering to was the youtube autoplay function which automatically plays a random recommended video if the queue in sync is empty.

That sounds likely to have been a YouTube change; I'm not aware of any API level way to control that.

calzoneman avatar Jun 18 '20 01:06 calzoneman

Yea this was a change on Youtube's end and I can confirm the same change recently occurring on my instance, as well. Not a CyTube issue

Gelmo avatar Jun 19 '20 02:06 Gelmo

It might be possible to deinit the player at the end of the playlist to avoid that, but a separate issue should be opened for that.

calzoneman avatar Jun 19 '20 04:06 calzoneman