No Video Streaming
< Feedback on YouTube: Audio Only
Can reproduce, but the fix might need time.
(Audio only is not officially supported by YouTube especially for livestream)
Upgraded to v2.2.0
Seems I found the root cause. I will update the script later.
Thanks
I'll be waiting for the update
It's still crashing a lot...
I think this is subject to video. Embedded iframe should work better.
Any example link?
which browser you are using?
Edge
It is still very buggy taking many page reloads for it to work
It is still very buggy taking many page reloads for it to work
What are the reproduction steps?
You launch the page and change the streaming videos again and again?
or just keep playing one single streaming video.
And the issue appears not immediately? No specific triggering action? How many time needed to wait this occur?
What are the reproduction steps? Open the page I gave you, that's it
You launch the page and change the streaming videos again and again? NO
or just keep playing one single streaming video. YES
It usually happens on the first page load.
The triggering action is loading the page and crossing my fingers hopping that your script will work.
Sometimes 15 page reloads are required to make it work, sometimes less or more; it's random
one more thing. which userscript manager you are using in Edge?
Tampermonkey? ScriptCat? Violentmonkey?
(Oh Violentmonkey still working in Edge... )
I guess there is Adblock extension you are using. Disable it for youtube.com
use this instead.
TM
I'll give it a try
Just as I thought, disabling all extensions didn't solve this problem and installing your other script didn't fix this error either.
I removed all browser extensions in a new profile, kept all TM settings and script, disabled one by one until only this script was left, and the issue persists.
Looks like your script tries to play only 15 seconds of audio (every 15 secs), but because it fast-forwards 15 seconds once the page loads, it crashes videos, especially live ones.
Just as I thought, disabling all extensions didn't solve this problem and installing your other script didn't fix this error either.
Oh... I cannot reproduce your issue .. Already use Edge + Tampermonkey 5.4.1 + https://greasyfork.org/en/scripts/484611-youtube-audio-only + https://greasyfork.org/en/scripts/523405-youtube-adbon
might be try Firefox ? Or Helium + ScriptCat ?
you can also try login / logout YouTube account. Different accounts are with different configurations.
This new edge profile wasn't logged in, my old profile is.
This is not a google acc issue.
With Edge + Tampermonkey 5.4.1 + 484611-youtube-audio-only + 523405-youtube-adbon
click the https://cyber-sec0.github.io/songs.html to open the page.
click the play inside the video if it is not played.
See the DevTools console message.
Is it same as mine?
Can you parse the screenshot?

As you said,
Sometimes 15 page reloads are required to make it work, sometimes less or more; it's random
When it works, please open the DevTools Console and take the screenshot and parse your screenshot.
Please update the script. The log shall be like this.

Paste your log screenshot please.
let me know if it works or not.
same
still like this showing a - duration.
from the message, seems the stopVideo issue is gone.
I guess it can be played correctly right?
Sorry I dont understand "still like this showing a - duration."
Might be you need to provide the screenshot for the web page as well.
look at the previous image, its stuck showing that is not live and with a -11 hours whatever duration https://greasyfork.org/en/scripts/484611-youtube-audio-only/discussions/327672#comment-648601
That did not change, the video loads, but doesn't play any audio...
You could try checking for
if (document.querySelector(".ytp-error") !== null || document.querySelector(".ytp-time-duration, .ytwPlayerTimeDisplayTimeDuration")?.innerText.includes("-")) {
//script failed, so retry/reload again?
}
?
?
I have no solution at this moment coz i cannot reproduce your issue
Would you like to use rustdesk or similar apps to remote into my PC to see it?
Now the script is no longer usable because I keep seeing negative durations on that site I gave you.
I often keep getting errors like "An error occurred. Please try again later. (Playback ID: 4DTzoLHroO2msn1K) Learn More" even after reloading the page many times on:
https://cyber-sec0.github.io/songs.html