vivaldi.pipPrivate Modders API Reference
Use the vivaldi.pipPrivate
API to interact with PIP.
Listeners
How to use listeners
Each listener type has the same functions, used for each listener API in the same way:
.addListener(function
callback)
Adds a function to a listener for an event
.removeListener(function
callback)
Removes a function to a listener for an event
.hasListener(function
callback)
Returns a boolean if a function is attached to a listener for an event
.hasListeners()
Returns a boolean if a listener has any attached functions
.dispatch()
Returns array of promises dispatched to the listener
#onVideoElementCreated
Fired when a video element has been created.
Parameters:
- tabId
integer
Tab id for the video element created event.