javascript - YouTube data API pauseVideo() isn't working -


i'm using youtube data api control embedded player , i'm getting odd results when call pausevideo(). instead of remaining in state 2 (or yt.playerstate.paused) player switches state 1 (playing). i'm using loadvideobyid() seekto() , pausevideo(). if change loadvideo cuevideobyid() works, i'm still curious.

i'm logging events onstatechange($event) , get:

pausing... state changed to: 2 state changed to: 1

is there reason player play after pause?


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -