Closed akash-mastercreationz closed 7 years ago
@akash-mastercreationz if you're using AVPlayer
then you can use the -seekToTime:
method
You can try this:
XCDYouTubeVideoPlayerViewController *videoPlayerViewController = [[XCDYouTubeVideoPlayerViewController alloc] initWithVideoIdentifier:videoIdentifier];
videoPlayerViewController.moviePlayer.initialPlaybackTime = 40;
If it doesn’t work, try setting the initialPlaybackTime when receiving XCDYouTubeVideoPlayerViewControllerDidReceiveVideoNotification
.
Can we play the viodeo from specific time .(like if the last played video was stoped at 40th second and when the user plays the same video after some time, it will start from 40th second)