Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

iOS: BrightCove native player throwing `kBCOVPlaybackSessionLifecycleEventError` playing same video on 2nd time

$
0
0

I want to resume video second time from the same time interval from which I left last time. But when I'm opening player for the second time, it either take longer time than the usual or (and mostly) it throws kBCOVPlaybackSessionLifecycleEventError Not sure what and why it's happening. Following is my pseude code to resume the video. Can anyone please help on this? In the native docs also, there is not much info is mentioned which can be of help. So do let me know if anyone has input on this one?

Here is the link for brightcove-ios-native SDK

func seekToTimeWithSeconds(seconds:Double) {
    let seekToTime = CMTimeMakeWithSeconds(seconds, preferredTimescale: 60000)
    playbackController?.seek(to: seekToTime, completionHandler: { [weak self] (finished: Bool) in
        self?.playbackController.play()
    })
}

Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>