Play and Pause are not working with custom control buttons as expected in iOS

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.

My code is given below.

        self.playerViewController.playerController.play()
        self.playerViewController.playerController.pause()

another approach

self.playerViewController.kPlayer.pause()
self.playerViewController.kPlayer.play()

hey,

@gudkesh_kumar can you give more details:
player sdk version? html5 player version?

UIConf an partner id.

Thanks!

cc @oren_melamed

Details are given below.

“partner_id”: “2232581”,
“uiconfig_id”: "37774891”

Player version: Latest version (DO NOT DELETE - MediaSpace 5.0 Embed Playlist, dark horizontal)

sdk version ~> 2.6

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