Voiceover player for handling the playing of one audio instance at a time
npm install @curiousmedia/vo-playerVO Controller designed for handling Springroll 2.0 voVolume state, and for playing only one sound instance at a time with CreateJS Sound
You can pass in a single UID String to the player to play or an Array of String UIDs and Numbers to play the Voiceover sequentially
with the Numbers being a delay in between Voiceover audio files.
* VOPlayer
* new VOPlayer(volume)
* .volume
* .volume
* .instance
* .chain
* .play(audio)
* .pause()
* .resume()
* .stop()
* .handleInstanceComplete(event)
* .handleChainComplete()
Constructor
| Param | Type | Default | Description |
| --- | --- | --- | --- |
| volume | Number | 1 | volume to play the sound instances at defaults to 1 |
Set the volume for this and the current instance playing
| Param | Type | Description |
| --- | --- | --- |
| volume | Number | volume to set |
Return the current volume level set on the VOPlayer
Return the current instance of VO playing
Return the current chain instance
Stop the current instance and play the new audio instance
| Param | Type | Description |
| --- | --- | --- |
| audio | String/Array | audio string UID name or Array of UID names and numbers for delay if needed |
Resume the current VO instance
Stop the currently playing instance
(Private) Handles what to do when an instance 'complete' event is called
| Param | Type |
| --- | --- |
| event | Event |
Handle the completion of the chain