Check readyState video properties
This function disposes the currend adapter, removes player listeners and drops references.
Emits related event and set flags if current status is valid. ie: won't sent start if isStarted is already true.
Optionalparams: objectObject of key:value params to add to the request.
OptionalconvertFromSeek: booleanIf true, will convert current seek to buffer.
OptionaltriggeredEvent: stringOptionaltriggeredByStateProperty: booleanEmits related event and set flags if current status is valid. ie: won't sent start if isStarted is already true.
Optionalparams: objectObject of key:value params to add to the request.
OptionaltriggeredEvent: stringEmits related event and set flags if current status is valid. ie: won't sent init if isStarted is already true.
Optionalparams: objectObject of key:value params to add to the request.
OptionaltriggeredEvent: stringEmits related event and set flags if current status is valid. ie: won't sent start if isStarted is already true.
Optionalparams: objectObject of key:value params to add to the request.
OptionaltriggeredEvent: stringEmits related event and set flags if current status is valid. ie: won't sent start if isStarted is already true.
Optionalparams: objectObject of key:value params to add to the request.
OptionaltriggeredEvent: stringEmits related event and set flags if current status is valid. ie: won't sent start if isStarted is already true.
Optionalparams: objectObject of key:value params to add to the request.
OptionaltriggeredEvent: stringEmits related event and set flags if current status is valid. ie: won't sent start if isStarted is already true.
Optionalparams: objectObject of key:value params to add to the request.
OptionaltriggeredEvent: stringOverride to return current bitrate
Override to return video duration
Override to return player's name
Override to return player version
Override to return current playhead of the video
Override to return resource URL.
Override to return title
Override to return total downloaded bytes
Override to return adapter version.
Override to return video object
Creates a new PlayheadMonitor at this.monitor.
If true, it will monitor buffers.
If true, it will monitor seeks.
Optionalinterval: numberThe interval time in ms.
OptionalintervalMilliseconds: numberOverride to create event binders.
It's a good practice when implementing a new Adapter to create intermediate methods and call
those when player events are detected instead of just calling the fire* methods. This
will allow future users of the Adapter to customize its behaviour by overriding these
methods.
Sets a new player, removes the old listeners if needed.
Player to be registered.
Start ReadyState monitor
Stop ReadyState monitor
Unregister listeners to this.player.
Main Adapter class. All specific player adapters should extend this class specifying a player class.
The Adapter works as the 'glue' between the player and YOUBORA acting both as event translator and as proxy for the Plugin to get info from the player.
Constructs
Adapter
Memberof
youbora
Param: player
Either an instance of the player or a string containing an ID.