搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Youtube playlist stops playing on next video when Firefox has no focus

  • 1 个回答
  • 0 人有此问题
  • 2 次查看
  • 最后回复者为 zygdresze1

more options

Hello. I use youtube website as music player quite often (without premium) and play my favorite list of songs. Meantime, when Google started meddling with youtube due to their new offer as youtube premium I met two most annoying issues like "are You still watching" dialog and the behaviour where youtube just cleared "repeat list" function without my consent. Both issues was resolved with java scriplets I took from community.

Now I run into third issue but not sure how to diagnose it. If Firefox is in the background, or tab with youtube has no focus the playlists stops from time to time. The moment it stops is when next video should start playing. When browsing on different tab, I can see on Youtube tab that title of the video has changed (to the next video) and even the song started (for 1-2 seconds) then video pauses and word "playing" disappears from tab (normally there should be title on tab and "playing" word under title). It is not "are You still watching" dialog issue because if I move mouse cursor on youtube tab (even without setting focus on it) the player will continue - till next song.

The issue doesn't appear if youtube tab is active. I can't use developer tools in firefox because can't debugging website when tab of the site is not active (at least I don't know how). I tried to find solution with community but with no success. I allowed youtube to play video and sound always without exception in firefox preferences but it is not the solution.

Any tips?

Hello. I use youtube website as music player quite often (without premium) and play my favorite list of songs. Meantime, when Google started meddling with youtube due to their new offer as youtube premium I met two most annoying issues like "are You still watching" dialog and the behaviour where youtube just cleared "repeat list" function without my consent. Both issues was resolved with java scriplets I took from community. Now I run into third issue but not sure how to diagnose it. If Firefox is in the background, or tab with youtube has no focus the playlists stops from time to time. The moment it stops is when next video should start playing. When browsing on different tab, I can see on Youtube tab that title of the video has changed (to the next video) and even the song started (for 1-2 seconds) then video pauses and word "playing" disappears from tab (normally there should be title on tab and "playing" word under title). It is not "are You still watching" dialog issue because if I move mouse cursor on youtube tab (even without setting focus on it) the player will continue - till next song. The issue doesn't appear if youtube tab is active. I can't use developer tools in firefox because can't debugging website when tab of the site is not active (at least I don't know how). I tried to find solution with community but with no success. I allowed youtube to play video and sound always without exception in firefox preferences but it is not the solution. Any tips?

所有回复 (1)

more options

For 99% probability the issue is related to YT api. I added line as below to my scriplet: document.querySelectorAll('.html5-main-video').forEach(vid => vid.play()); Scriplet launches each 5 seconds so now I have a small break beetween videos. I am pretty sure YT api detects no focus or background state of Firefox and stops playing. Wonder if I can somehow reset time YT is counting.