Miles DeWitt

A PeerTube video utilizing Web Monetization

Web Monetization in PeerTube

Web Monetization makes it easy for viewers to support creators through anonymous micropayments.

Viewers can sign up for a service such as Coil and either install their extension or use their Puma Browser (they are currently the only provider). Then, when they view a supported video, payments will be made while the video is playing.

Creators can monetize their content by using a PeerTube instance with the Web Monetization plugin installed, and adding their Interledger payment pointer. A payment pointer provides a way for funds to be deposited, and a supported wallet can be created using GateHub or Uphold. The payment pointer is added under the "Plugin Settings" tab in the video editing interface.

Editing plugin settings on a video

The monetization status of videos will then show when viewing their thumbnails.

Badges on video titles

Creators can specify the location of sponsors segments using the PeerTube chapters plugin, and those who pay with Web Monetization will automatically skip those sponsor segments. You can also set a minimum pay rate for ad-skipping as seen above.

Chapter menu including sponsor segments

Segments of the video which have already been paid for are remembered and will not receive double-payment. Users can store this data when logged-in to not pay multiple times. General contribution data is made available in the stats tray below the video. However, no data sharing is necessary.

Stats tray

If a video has a non-zero view cost and the viewer does not have Web Monetization, they will not be able to view the video and be shown this modal.

Modal requesting payment to view video

Likewise, if Web Monetization is enabled, but the pay rate is too low, this modal shows.

Modal requesting increased payment to view video

Installation

Only instance administrators can install the plugin. You will need at least PeerTube version 3.2. To install it, go to the "Plugins/Themes" tab in the administration settings. Then choose "Search," and search for Web Monetization.

Code

The code is available in the repository on GitHub.