SequencePlayerEvents
Constants
Created
Triggered when SequencePlayer created.
Parameters
sequencePlayer:
Sequence player that generated the event
Error
Triggered when playback has finished with an error
Parameters
error:
string
Error message
sequencePlayer:
Sequence player that generated the event
PlaybackFinished
Triggered when playback has finished successfully or with an error.
Parameters
error:
string
OptionalError message
sequencePlayer:
Sequence player that generated the event
PlaybackMarkerReached
Triggered when SequencePlayer.addMarker is reached.
Parameters
offset:
number
The marker offset
sequencePlayer:
Sequence player that generated the event
PlaybackReady
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
sequencePlayer:
Sequence player that generated the event
Started
Triggered when playback of the first SequencePlayer segment starts.
Parameters
sequencePlayer:
Sequence player that generated the event
Stopped
Triggers as a result of the SequencePlayer.stop method call.
Parameters
sequencePlayer:
Sequence player that generated the event