1.5.0 • Published 3 years ago

@curiousmedia/vo-player v1.5.0

Weekly downloads
23
License
MIT
Repository
-
Last release
3 years ago

VOPlayer

VO 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.

new VOPlayer(volume)

Constructor

ParamTypeDefaultDescription
volumeNumber1volume to play the sound instances at defaults to 1

voPlayer.volume

Set the volume for this and the current instance playing

ParamTypeDescription
volumeNumbervolume to set

voPlayer.volume

Return the current volume level set on the VOPlayer

voPlayer.instance

Return the current instance of VO playing

voPlayer.chain

Return the current chain instance

voPlayer.play(audio)

Stop the current instance and play the new audio instance

ParamTypeDescription
audioString/Arrayaudio string UID name or Array of UID names and numbers for delay if needed

voPlayer.pause()

Pause the current VO instance

voPlayer.resume()

Resume the current VO instance

voPlayer.stop()

Stop the currently playing instance

voPlayer.handleInstanceComplete(event)

(Private) Handles what to do when an instance 'complete' event is called

ParamType
eventEvent

voPlayer.handleChainComplete()

Handle the completion of the chain

1.5.0

3 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago