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

Autoplay only the first youtube video when multiple tabs have been opened #1526

Open
ShanaryS opened this issue Dec 22, 2022 · 3 comments
Open
Labels
Feature request Wish or idea good first issue A GitHub standard for inviting (new) contributors *Congratulations in advance!* 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

@ShanaryS
Copy link

PROBLEM:

When opening multiple youtube videos, they all start playing if autoplay is enabled. This gets solved if I disable autoplay in the extension, but then when opening and watching a single youtube video, it doesn't autoplay.

SOLUTION:

Add an option to only autoplay a video if only a single youtube.com tab is open. This allows autoplay in the normal case while also preventing many videos being played at once.

ALTERNATIVES:

There are none. The extension allows pausing when switching tabs, but that prevents having youtube play in the background.

RELEVANCE / SCOPE:

Absolutely should be the default. I imagine the main reason for preventing autoplay is to stop when opening multiple tabs, at least for me.

"SIDE EFFECTS":

Would change the autoplay option from a boolean to three choices.

CONTEXT:
//
Thank you!

SHORT Table (Summary)
Problem Autoplay on multiple videos
Solution Allow autoplay only if one youtube.com tab is open or if no videos are currently playing.
Alternatives
Scope Everyone
Side effects Autoplay settings rewrite
Context
@ShanaryS ShanaryS added Feature request Wish or idea help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) labels Dec 22, 2022
@ImprovedTube ImprovedTube reopened this Feb 19, 2023
@ImprovedTube
Copy link
Member

ImprovedTube commented Feb 19, 2023

hi! @ShanaryS alternatively / additionally our feature "only one player instance playing" autopauses what plays in the once you play (or autoplay) in an another tab.

@ShanaryS
Copy link
Author

ShanaryS commented Feb 19, 2023

@ImprovedTube This has a better experience with multiple tabs but not quite what I wanted. I would prefer the option to keep playing the original video and prevent autoplay on the rest. Currently the active tab takes over.

I would also like if all it did was disable autoplay if a video was already playing. This allows you the option to manually play a second video without stopping the first if desired.

@ImprovedTube
Copy link
Member

ImprovedTube commented Feb 19, 2023

i think you want a proper/fixed "only one player instance is playing" ( https://github.com/code-for-charity/ImprovedTube-for-YouTube/issues/1516

plus maybe the autoplay options:

  • autoplay: on for the first video only.
    • autoplay only for the first video but overwriting blocked autoplay by the browser. Like an audio-only-/podcast-mode.
      • ultimately this brings up the question: "What if you close the background tab playing, and opened more youtube tabs still blocked: shall, the oldest be played next, or the most recently added. And why would we use the tab bar like an unfomfortable queue / playlist?"
      • in terms of queue/history/playlists/bookmarks, we'd better start here? Playlist / watchlist generator from open tabs, browsing history, etc.  #1546

@ImprovedTube ImprovedTube added up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥ good first issue A GitHub standard for inviting (new) contributors *Congratulations in advance!* labels Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Wish or idea good first issue A GitHub standard for inviting (new) contributors *Congratulations in advance!* 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

2 participants