SubscriberPlaybackController()

Interface contract for playback controller actions.

new SubscriberPlaybackController()

Extends

Methods

mute()

Request to mute the audio of the stream.

off(type, fn)

Remove a callback handler for an event type.

Parameters:
Name Type Description
type String
fn function
Inherited From:

on(type, fn)

Assign a callback handler to an event type.

Parameters:
Name Type Description
type String
fn function
Inherited From:

pause()

Request to pause playback of stream.

play()

Request to start playing the stream.

resume()

Request to resume playback od stream.

seekTo(value, duration)

Request to set playback point in time.

Parameters:
Name Type Description
value Number

Either the percentage of the duration (if provided) or the time in seconds.

duration Number

Optional duration of video (when known through VOD) to use to determine time based on first param passed as percentage.

setVolume(value)

Request to set volume of audio of stream.

Parameters:
Name Type Description
value Number

From 0..1.

stop()

Request to stop playback of stream.

toggleFullScreen()

Request to toggle fullscreen state.

trigger(event)

Dispatch an event to be handled by any assigned callbacks.

Parameters:
Name Type Description
event Event
Inherited From:

unmute()

Request to unmute the audio of the stream.