How can I tell if my soundjs soundInstance is paused vs completed? -



How can I tell if my soundjs soundInstance is paused vs completed? -

i'm using soundjs build simple sound mixer standard pause/play/scrub functionality each track.

i have working well, creating manifest, creating soundinstances per "track" when added play list.

but cannot find in documentation or available info on soundjs how dynamically found whether play state of specific soundinstance playing or paused.

though can track "playstate" property, not appear tell me need know. says whether soundinstance "playfinished" or "playsucceeded".

checking property on soundinstance has been paused through soundinstance.pause() yields "playsucceed". checking 1 time again after soundinstance has been resumed through soundinstance.resume() yields "playsucceeded" value.

while can track play state separately, seem much cleaner approach able check soundinstance determine things like: "completed" (stopped), "paused", "playing", etc.

is there no improve way through soundinstance?

thanks

jeff

this has been added soundjs next available on github soundinstance.paused

hope helps.

soundjs

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -