interledger / web-monetization-projects

Coil projects that use Web Monetization. Primarily Coil's browser extension and related WM polyfills.
web-monetization-projects-coilhq.vercel.app
Apache License 2.0
81 stars 17 forks source link

Only Pay while stream? #590

Closed SamuelEVicente closed 4 years ago

SamuelEVicente commented 4 years ago

I hope this is the correct place to post this question. At Musicoin we offer users to stream music and pay the content creator immediately with smart contracts. We are looking into web monetization, we are wondering whether it’s possible to only make the user pay while streaming?

matdehaast commented 4 years ago

Hi @SamuelEVicente .

That is possible by dynamically inserting/removing the creators Payment Pointer only when the user is actually streaming the music. There is actually an example of this https://gfdgvrj.dlvr.cloud/. Though that example pays the platform when music is not being streamed. But that could easily be changed to no payments at all.

sublimator commented 4 years ago

I hope this is the correct place to post this question.

It's fine, but you'll get more eyeballs beyond code monkeys @ this repo, where the spec is developed: https://github.com/interledger/webmonetization.org

SamuelEVicente commented 4 years ago

@matdehaast Awesome, thank you for the reference.