-
Notifications
You must be signed in to change notification settings - Fork 910
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
Option to prevent suspension of tabs that are potentially producing sound #28
Comments
This might become easier as chrome might be getting a related feature and hopefully API in the near future: Google Chrome Getting Audio Indicators for Tabs Making Sound |
I think I might leave this one for now. Adding these sites to the whitelist should be a fairly decent workaround for now. |
The latest webstore version now has the ability to 'temporarily pause suspension' for a site. If you have a tab open that is playing music and you do not want it to suspend, you can use this option to prevent it from suspending in the background. |
Just to reiterate as this is one of the more commonly requested features. Chrome does not provide developer access to its ability to detect which tab is playing music. Therefore I am unable to include an option to prevent these tabs from suspending. |
Would you consider reopening this ticket if Chrome were to provide the ability to easily detect which tabs were playing audio? Maybe if you got a pull request? |
Definitely. I would love to have a dedicated option 'dont suspend tabs that are playing audio'. |
The content script could look for It's not a perfect way to do it but considering many major sites are using Worth also looking at the MuteTab extension's FAQ. Willing to put in the work for this if you'd like it. |
@kirb i have checked out mutetab, and it left me with the impression that there's just too much hackery involved in getting this feature working. i could definitely do as you suggested and catch a large percentage of the use-cases, but i'm worried that it would appear to be a buggy feature as it would not work consistently. |
I think it would be acceptable if there was a "Do not suspend tabs that have audio or video" checkbox that simply checked if the page had any |
I use theses websites to play music: SoundCloud, Mixcloud and YouTube. |
Requires a development of the tabs extensions to allow this. For more information, see here for the Chromium issue. |
I would like to see this soon. Its a great extension that deserves this. |
If i was to implement this (highly considering it), what websites specifically should I be targetting? It seems that the audio/video !paused should be fairly easy. but with some quick tests this won't work for soundcloud or spotify. Any broad strokes I can make to detect flash audio/video? What about soundcloud? And are there other popular sites that I should be testing for? |
In addition to the 3 aforementioned websites, I would add: |
The audible tab functionality has now been baked into Chrome 46. Specifically, you should be able to query tab.audible to return a boolean value of whether the tab has produced sound in the last couple of seconds. More info on the API: https://developer.chrome.com/extensions/tabs |
Finally! This has now been implemented 👯 |
When is it planned to push out this feature? |
Well now? |
Available in the chrome webstore in v6.30 |
New Crowdin updates
Sometimes, its nice to run soundcloud, rdio, youtube, etc in the background to play some music or other multimedia for an extended period. Ideally, there'd be some option to prevent auto suspension of a tab like this that is responsible for producing sound.
Such a feature could perhaps utilize the same technique that this extension is using to detect potentially sound producing tabs, or could perhaps even work in concert with this extension:
http://www.mutetab.com/
The text was updated successfully, but these errors were encountered: