This is an interesting question. There is currently no way to use the BrightCove Player SDK for iOS for this, but you can go directly to the AVFoundation level to do this. Here's how:
The playback controller will create a playback session for each video that you give it. Inside each playback session is an AVPlayer containing an AVPlayerItem with your video (in fact, one of the BCOVSource videos). When the AVPlayerItem status property is set to AVPlayerItemStatusReadyToPlay , you can safely use any of the AVPlayer -seekToTime methods to find the video at the right time to start the video. There is a lifecycle event that is dispatched to your delegate (if you implement the appropriate delegate method) that you can listen to receive a notification about this event.
In addition, you probably want to set self.controller.autoPlay = NO so that the video does not start before you can find the desired start time. Then you can simply call -play manually from your search completion handler.
Here's the basic idea (note that this code has not been tested):
- (void)playbackController:(id<BCOVPlaybackController>)controller session:(id<BCOVPlaybackSession>)session didReceiveLifecycleEvent:(BCOVPlaybackSessionLifecycleEvent *)event { if ([kBCOVPlaybackSessionLifecycleEventReady isEqualToString:event.eventType]) { [session.player seekToTime:desiredStartTime completionHandler:^() { [session.player play]; }]; } }
source share