I am trying to play and pause the video using custom button. But its not working as expected. The actions are not performed instantly. Even it continue to play after pausing the video.
Actually any 2 consecutive requests makes the second one doesn’t work, ex:
player.sendRequest(‘doSeek’)
player.sendRequest(‘doPause’)
do pause won’t work!
except if there’s at leat 500ms space between them .
ex:
player.sendRequest(‘doSeek’)
Timeout(function(){player.sendRequest(‘doPause’)},500)
this will work but after 0.5 sec.
Any solutions for this