listen to player state change
This commit is contained in:
parent
6a8b379763
commit
fe9005b956
|
@ -86,6 +86,14 @@
|
|||
|
||||
break
|
||||
|
||||
case STATE.PLAYING:
|
||||
paused = false
|
||||
break
|
||||
|
||||
case STATE.PAUSED:
|
||||
paused = true
|
||||
break
|
||||
|
||||
case STATE.ENDED:
|
||||
ended = true
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue