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

Pause? #7

Open
orschiro opened this issue Feb 27, 2017 · 3 comments
Open

Pause? #7

orschiro opened this issue Feb 27, 2017 · 3 comments

Comments

@orschiro
Copy link

Dear @kumar303,

This is brilliant!

Is it possible to pause an audio stream instead of mute it?

Yours,

Robert

@kumar303
Copy link
Owner

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 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).

@orschiro
Copy link
Author

orschiro commented Feb 28, 2017 via email

@kumar303
Copy link
Owner

kumar303 commented Mar 1, 2017

Well, it would be nice. I'll leave the issue open in case someone thinks of a better way to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants