YePpHa / YouTubeCenter

YouTube Center is a userscript designed to expand the functionality of YouTube. It includes the ability to download the video you're watching, auto selecting your preferred video quality and much more.
MIT License
2.89k stars 520 forks source link

Prevent Auto-play in HTML5 is not properly implemented #1160

Open rafaeldamasceno opened 9 years ago

rafaeldamasceno commented 9 years ago

Chrome 40.0.2214.5 dev-m (64-bit), YTC Build 419

Because of the newly implemented 60fps mode, all the players default to HTML5 on Chrome. However, auto-play isn't properly implemented thus creating some annoyances.

As of now, it works by letting the video play a bit, then pausing it. I suppose it was meant to achieve this quickly, but it takes too long. With many tabs, I've seen it go for up to 10 seconds before doing anything.

A quick bandage would be to make it so that the video starts silent (another annoying part of this bug, multiple tabs opening generate some noise, even with only one instance option activated), and after pausing the video, resetting the time to 0:00, because right now every single video is only paused around 0:03.

And by the way, SPF + HTML5 + Prevent auto-play is currently disastrous.

YePpHa commented 9 years ago

First of all, the reason I went with the pause method is because the old method used with the flash player does not work and I have yet to find another solution to this issue. Until I find something else people would have to experience this 'annoyance'. When I find a different method I will of course patch it. Finally, I did not design YouTube Center to be compatible with SPF at first. However, I was able to make it somewhat compatible when YouTube introduced SPF, but there are still some kinks here and there like the prevent auto-play you mentioned. I will try to fix it.

rafaeldamasceno commented 9 years ago

At least can you do the things I suggested, like turning off the sound at first and resetting video time?

YePpHa commented 9 years ago

I think that it's already doing that, but it can be that I at some point removed that part.