-
Notifications
You must be signed in to change notification settings - Fork 2
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
Pause? #7
Comments
Hi Robert. I think it's possible but I'm not sure it would be worth the effort, especially not the maintenance burden. The only way I can think of doing it is to inject a content script on any page that plays audio and create a custom adapter for every single site on the Internet that plays audio -- this adapter would use The adapter would have to be custom for each site since they all use different HTML for their buttons. Actually, many are still in Flash for some reason (soundcloud, for example) so it may not be possible in Flash. If we did all this, it would need extensive automated testing otherwise it's definitely not worth trying to maintain it as each site evolves (the buttons will break a lot). |
Hi Kumar,
That makes total sense.
Let's not do it then. It seems to be way too much of a hassle maintaining
it.
Thanks for your response!
Robert
…On Mon, Feb 27, 2017 at 4:36 PM Kumar McMillan ***@***.***> wrote:
Hi Robert. I think it's possible but I'm not sure it would be worth the
effort, especially not the maintenance burden. The only way I can think of
doing it is to inject a content script
<https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Content_scripts>
on any page that plays audio and create a custom adapter for every single
site on the Internet that plays audio -- this adapter would use
document.querySelector() to get the play/pause button and then click it.
The adapter would have to be custom for each site since they all use
different HTML for their buttons. Actually, many are still in Flash for
some reason (soundcloud, for example) so it may not be possible in Flash.
If we did all this, it would need extensive automated testing otherwise
it's definitely not worth trying to maintain it as each site evolves (the
buttons will break a lot).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKbw-VnDtgOlR19YuenzJFwIhVxObC_ks5rgu1cgaJpZM4MMz1q>
.
|
Well, it would be nice. I'll leave the issue open in case someone thinks of a better way to do it. |
Dear @kumar303,
This is brilliant!
Is it possible to pause an audio stream instead of mute it?
Yours,
Robert
The text was updated successfully, but these errors were encountered: