Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Force video to play from the beginning" causing audio to play when not on video page #1652

Closed
MopsyGH opened this issue Apr 2, 2023 · 2 comments
Labels
Bug Bug or required update after YouTube changes help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥

Comments

@MopsyGH
Copy link

MopsyGH commented Apr 2, 2023

This has been fairly consistent for me, when enabling "Force video to play from the beginning" and playing a video, if you go to a different page on YouTube the audio from the last video you were watching will play despite there being no PiP or any sign of the video itself. Easier to see with non-playlist videos. Disabling this feature seems to stop the issue from occurring. If you open a new video the previous audio will no longer play, however if you again move to another page the new video will play audio instead.

@MopsyGH MopsyGH added Bug Bug or required update after YouTube changes help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) labels Apr 2, 2023
@ImprovedTube
Copy link
Member

ImprovedTube commented Apr 3, 2023

what other Youtube-page do you go to then?

related to this part

if (ImprovedTube.elements.player && ImprovedTube.video_url !== location.href) {

ImprovedTube.initPlayer = function () {
if (ImprovedTube.elements.player && ImprovedTube.video_url !== location.href) {
ImprovedTube.video_url = location.href;
ImprovedTube.played_before_blur = false;
delete ImprovedTube.elements.player.dataset.defaultQuality;
ImprovedTube.forcedPlayVideoFromTheBeginning();

ImprovedTube added a commit that referenced this issue Apr 3, 2023
ImprovedTube added a commit that referenced this issue Apr 3, 2023
ImprovedTube added a commit that referenced this issue Apr 3, 2023
ImprovedTube added a commit that referenced this issue Apr 3, 2023
ImprovedTube added a commit that referenced this issue Apr 4, 2023
This reverts commit cabff6f.
ImprovedTube added a commit that referenced this issue Apr 4, 2023
@ImprovedTube
Copy link
Member

ImprovedTube added a commit that referenced this issue Apr 4, 2023
@ImprovedTube ImprovedTube added the up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥ label Apr 29, 2023
ImprovedTube added a commit that referenced this issue Jan 12, 2024
ImprovedTube added a commit that referenced this issue Jan 12, 2024
ImprovedTube added a commit that referenced this issue Jan 12, 2024
ImprovedTube added a commit that referenced this issue Jan 12, 2024
This reverts commit cabff6f.
ImprovedTube added a commit that referenced this issue Jan 12, 2024
ImprovedTube added a commit that referenced this issue Jan 12, 2024
@raszpl raszpl closed this as completed Jun 17, 2024
ImprovedTube added a commit that referenced this issue Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug or required update after YouTube changes help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥
Projects
None yet
Development

No branches or pull requests

3 participants