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

Support streaming to background tabs #17

Open
adrianhopebailie opened this issue Oct 14, 2019 · 9 comments
Open

Support streaming to background tabs #17

adrianhopebailie opened this issue Oct 14, 2019 · 9 comments
Labels
enhancement

Comments

@adrianhopebailie
Copy link
Collaborator

adrianhopebailie commented Oct 14, 2019

From web-monetization created by adrianhopebailie: adrianhopebailie/web-monetization#12

It's not clear right now how a browser would decide if it needs to keep streaming money to a tab that is out of focus.

A possible use case is music playing from a background tab.

@adrianhopebailie
Copy link
Collaborator Author

adrianhopebailie commented Oct 17, 2019

cc @sharafian @sublimator @justmoon @tobie @marcoscaceres

Any thoughts on this use case?

@sharafian
Copy link
Collaborator

sharafian commented Oct 17, 2019

The most obvious way to do this would be to ask for permission, but then it's likely every site would ask for it because it would be so lucrative. I'd would say that situation is worse than not supporting this feature, because suddenly having WM gives you a worse experience across the web.

I suppose we could have this as an option that the user can set on a site but the site can't prompt for. Where you can go into the URL bar or the extension menu or the settings or something and allow a site to monetize in the background. The site could prompt the user with instructions if it notices that it's been backgrounded and instruct the user to do this. Not sure if there's any existing features that work that way though. It could be a bit odd.

@tobie
Copy link

tobie commented Oct 17, 2019

This seems like a v2 feature to me.

@dellagustin
Copy link

dellagustin commented Dec 3, 2020

Hi All, great that this issue is already documented.
I am a developer of a podcast player app on the web, and, naturally, most of the content is consumed from background.
I like the idea of asking for permission, but agree with @sharafian comment that it could be abused.

Playing media from a tab is a good sign that there is content there, but again, a website could keep playing some low volume media to pretend it is doing something... it is tricky, but I think it is an important use case for sites providing media (including vídeo, as some times people only listen to them).

@dellagustin
Copy link

dellagustin commented Dec 3, 2020

FYI, at Podcastindex-org/podcast-namespace#132 we are discussing how to support Open Payment monetization for podcasts and how to represent it in the podcast feeds, this will of course have an impact on how podcast player apps use Web Monetization.

@drsm79
Copy link

drsm79 commented Feb 2, 2021

While I think the avenues for abuse are there, the alternatives are worse (either stop the audio stream to regain focus or people don't get paid). Without something to address this, you essentially limit the viability of web monetisation to written or interactive media (games etc), which is still a huge market, but... Maybe something like if there's media playing, the payment stream will go on for a longer time (an hour?) or at a lower payment rate with the tab in the background? Prompting someone on a slower frequency (30-60 mins) is probably sufficiently non-invasive (there's a fair chance they'll skip, change track etc in that time).

@kookster
Copy link

kookster commented May 16, 2022

Hey @sharafian wanted to bump this up, as I'm also looking into podcasting support for WM like @dellagustin but for PRX and our products/shows.

I can see how enabling across the board could be an issue.
Any plans to allow background monetization, with some kind of permission, prompt, or setting?

@justmoon
Copy link
Contributor

justmoon commented May 16, 2022

cc/ @sabineschaller

@kookster
Copy link

kookster commented May 20, 2022

Thanks @justmoon for your eyes on this, and @sabineschaller for whatever you might add to how to address this case!

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

No branches or pull requests

7 participants