Rate this page:

SequencePlayerEvents

Constants

Created

Copy URL

Triggered when SequencePlayer created.

Parameters

Error

Copy URL

Triggered when playback has finished with an error

Parameters

  • error:

    string

    Error message

  • sequencePlayer:

    SequencePlayer

    Sequence player that generated the event

PlaybackFinished

Copy URL

Triggered when playback has finished successfully or with an error.

Parameters

  • error:

    string

    Optional

    Error message

  • sequencePlayer:

    SequencePlayer

    Sequence player that generated the event

PlaybackMarkerReached

Copy URL

Triggered when SequencePlayer.addMarker is reached.

Parameters

  • offset:

    number

    The marker offset

  • sequencePlayer:

    SequencePlayer

    Sequence player that generated the event

PlaybackReady

Copy URL

Triggered by the VoxEngine.createSequencePlayer methods when
1) all the segments audio files download to the Voximplant cache is finished;
2) all the audio files is found in the cache (i.e., it is in the cache before).

Parameters

Started

Copy URL

Triggered when playback of the first SequencePlayer segment starts.

Parameters

Stopped

Copy URL

Triggers as a result of the SequencePlayer.stop method call.

Parameters