Members
src
Synchronise wmm-video elements *src* attribute
with inner video -elements *src* attrubute.
- Source:
Methods
addEventListener(name, action)
Event listener for monetization and video events.
Binding to monetization events ('monetizationStopped', 'monetized', 'monetizeFailed')
allows tracking of monetization state, while all other events are passed
to the inner <video> element and can be used to track the state of the media.
E.g. https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Event name |
action |
function | The action to execute on event. |
- Source:
connectedCallback()
Initializes monetization and styles
when component is inserted into DOM.
- Source:
disconnectedCallback()
Stops monetization and disconnects the media stream
when component is removed from DOM.
- Source:
removeEventListener(name, action)
Remove monetization or video element listener
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Event name |
action |
function | The action to execute on event. |
- Source: