Thunderarea / music-mode-for-youtube

Browser extension for blocking the video and playing only the audio on YouTube and YouTube Music
GNU General Public License v3.0
29 stars 0 forks source link

Loading audio lags when using "Hide the video" button #3

Open duttyend opened 5 months ago

duttyend commented 5 months ago

Dear dev,

First of all, thank you so much for this awesome add-on!!! It combines everything I need (skip ads + music mode), and even has a beautiful and clean interface...

I have it ON all the time for skipping ads but I only toggle Hide the video on some videos when not watching them. Every time it switches from video to audio, there is a long lag. Sometimes it even stalls and it's necessary to manually click on play/pause or move the timeline to get the audio to load.

Attached you will find the settings I use.

Screenshot 2024-01-17 115048 Screenshot 2024-01-17 115148 Screenshot 2024-01-17 115208 Screenshot 2024-01-17 115229 Screenshot 2024-01-17 115247

Thanks again for your wonderful work and happy new year!

Thunderarea commented 5 months ago

Thank you for your kind words. I am glad that you like it!

Regarding your issue could you please tell me which browser you are using?

In general, it needs some seconds (~1-3) to change from video to audio but not a long lag and it rarely stalls.

duttyend commented 5 months ago

Yes, sorry, I forgot to mention that I'm using the latest Firefox 64-bit on the latest Windows 11 version (but this has been happening since I began using your fabulous extension, so several Firefox versions have passed and nothing has changed).

It takes much more than 1 to 3 seconds unfortunately, more like 30 seconds to 1 minute or sometimes forever until I press Play/Pause again or move the timeline.

I think my issue is the same as the better-phrased issue #7 you just opened.

Thunderarea commented 5 months ago

I have done many tests in Firefox but I never observed a so long lag (except of some cases). I will test it again. However, I know that it takes more time than in Chrome to change from video to audio. It is something that needs improvement. It is not a bug in my code but is something that depends a lot on YouTube. I have devoted many hours trying to eliminate this issue and it now works much better than in the older versions when the extension was available only for Chrome. However, there is still room for improvement. If you are a developer and you want, you are welcome to contribute/experiment towards this direction!

duttyend commented 5 months ago

Thanks a lot for your time and effort. Unfortunately, I'm not a developer; hopefully, someone comes with a new idea to work around this. Have a good evening!