Rate this page:

SequencePlayer

Represents an instance with segments represented by audio and URL players.
Can be used by calling the VoxEngine.createSequencePlayer method.

Methods

addEventListener

Copy URL
addEventListener(event: 

SequencePlayerEvents

,
callback:

Function

):

void

Adds a handler for the specified SequencePlayerEvents event. Use only functions as handlers; anything except a function leads to the error and scenario termination when a handler is called.

Parameters

Returns

  • type:

    void

addMarker

Copy URL
addMarker(offset: 

number

,
segment:

PlaybackParameters

):

void

Adds a playback marker to the specified segment. The SequencePlayerEvents.PlaybackMarkerReached event is triggered when the marker is reached.

Parameters

  • offset:

    number

    Positive/negative offset in milliseconds from the start/end of media

  • The segment to add the marker

Returns

  • type:

    void

id

Copy URL
id(): 

string

Returns the sequence player's id.

Returns

  • type:

    string

pause

Copy URL
pause(): 

void

Pauses playback. To continue the playback use the SequencePlayer.resume method.

Returns

  • type:

    void

removeEventListener

Copy URL
removeEventListener(event: 

SequencePlayerEvents

,
callback:

Function

):

void

Removes a handler for the specified SequencePlayerEvents event.

Parameters

Returns

  • type:

    void

resume

Copy URL
resume(): 

void

Resumes playback after the SequencePlayer.pause method is called.

Returns

  • type:

    void

sendMediaTo

Copy URL
sendMediaTo(mediaUnit: 

VoxMediaUnit

,
parameters:

SendMediaParameters

):

void

Starts sending media from the sequence player to the media unit.

Parameters

Returns

  • type:

    void

stop

Copy URL
stop(): 

void

Stops playback. The current sequence player's instance with all its segments is destroyed.

Returns

  • type:

    void

stopMediaTo

Copy URL
stopMediaTo(mediaUnit: 

VoxMediaUnit

):

void

Stops sending media from the sequence player to the media unit.

Parameters

  • mediaUnit:

    VoxMediaUnit

    Media unit that does not need to receive media from this conference anymore

Returns

  • type:

    void