Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fatin41 opened this issue Mar 23, 2020 · 0 comments

Comments

@fatin41
Copy link

fatin41 commented Mar 23, 2020

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?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant