Player state is changing very frequently iOS

I have this problem, when a video starts playing and the player state keeps changing from KPMediaPlaybackStatePlaying to KPMediaPlaybackStatePaused and vice versa. This behaviour is always there through out the video play. We have hidden the default controls of the player and added our custom controls. Config code and delegate Method is given below.

   conf.addKey("EmbedPlayer.NativeControls", withValue: "true")
    conf.addKey("autoPlay", withValue: "true")
    conf.addKey("largePlayBtn.plugin", withValue: "false")    

func kPlayer(_ player: KPViewController!, playerPlaybackStateDidChange state: KPMediaPlaybackState) {

    //if KPMediaPlaybackState.playing
    
    print("PlaybackState  ", state.rawValue)
    
}

The debug logs are given below. And My Config details are as given below

“entryID”: “1_0kkk6493”,
“partnerID”: “2232581”,
“uiconfigID”: “37768731”

PlayerSDK version is ~> 2.6.9

2017-02-09 16:48:21.038 KalturaPlayerDemoUI[6919:93307] true
2017-02-09 16:48:21.039 KalturaPlayerDemoUI[6919:93307] false
2017-02-09 16:48:21.040 KalturaPlayerDemoUI[6919:93307] (null)
PlaybackSate 3
2017-02-09 16:48:21.043 KalturaPlayerDemoUI[6919:93307] (null)
PlaybackSate 4
2017-02-09 16:48:21.045 KalturaPlayerDemoUI[6919:93307] (null)
PlaybackSate 3
2017-02-09 16:48:21.147 KalturaPlayerDemoUI[6919:93307] (null)
PlaybackSate 3
2017-02-09 16:48:21.149 KalturaPlayerDemoUI[6919:93307] (null)
PlaybackSate 4
2017-02-09 16:48:21.159 KalturaPlayerDemoUI[6919:93307] (null)
PlaybackSate 4
2017-02-09 16:48:21.160 KalturaPlayerDemoUI[6919:93307] (null)
PlaybackSate 3