monetize.js
Members
(constant) monetizeEvents#
A Set including names of all events that Web Monetization API (document.monetization) emits.
- Source:
Methods
initMediaMonetization(wmm)#
Initializes monetization of WmmAudio or WmmVideo instance. Monetization is started when the instance in inserted in DOM and only one media can be monetizad at a time (limit of WM API). For this reason, the monetize.js module tracks the currently active media, and emits a 'mediaMonetizationStopped' event on the previously active media, when a new media takes its place a the actively monetized media.
Parameters:
| Name | Type | Description |
|---|---|---|
wmm | object | WmmAudio or WmmVideo instance |
- Source:
updateMedia()#
This is a description of updateMedia
- Source: