fix: prevent ~1s autoplay flash when autoplay is disabled (#1461)
(Text assumed to be LLM spam removed)
Hi and thanks! @jiangyj545 please let clear how serious each of your contributions is. We might appreciate LLM experiments too, yet not knowing what we are looking at is an unnecessary loss of efficiency and respectful workflow.
the raw HTML5 video.pause() is near-instant.
let's find out more?
1461 might not be fully uptodate?
6 years ago the following was replaced with .pauseVideo()
args.autoplay = '0'; args.suppress_autoplay_on_watch = true; args.fflags = args.fflags.replace(/html5_new_autoplay_redux=true/g, 'html5_new_autoplay_redux=false'); args.fflags = args.fflags.replace(/allow_live_autoplay=true/g, 'allow_live_autoplay=false'); args.fflags = args.fflags.replace(/mweb_muted_autoplay=true/g, 'mweb_muted_autoplay=false'); args.fflags = args.fflags.replace(/web_player_kaios_autoplay=true/g, 'web_player_kaios_autoplay=false'); args.fflags = args.fflags.replace(/autoplay_time=8000/g, 'autoplay_time=0'); args.fflags = args.fflags.replace(/legacy_autoplay_flag=true/g, 'legacy_autoplay_flag=false');
https://github.com/code-charity/youtube/commit/3d8b9e80ad547bf1b43e9d137f744e76a54a489a