<p>Is it possible to use chapters in videos for the iPhone in an application?</p>

<p>For example:
I have a 3 minutes video to play. I have chapter 1 starting at 0s, chapter 2 at 50s, chapter 3 at 95s.</p>

<p>Can I start plating the video at 50s (chapter 2) until the end? Can I make it play just the chapter 2 from 50s to 95s?</p>

<p>My question is not about how to add chapters to a video. I want to know if this behaviour is available on the iphone.</p>

This is definitely possible sending the non-documented message
setCurrentTime
to MPMoviePlayerController. It takes one parameter of type double which specifies the playback position in seconds. Find below a short example:
Extend the MPMoviePlayerController to avoid compiler warnings:
```
```
@interface MPMoviePlayerController (extended)
-(void)setCurrentTime:(double)seconds;
@end
```
```
Then you can call it wherever you need it - before start or during playback.
```
```
MPMoviePlayerController* player = [[ MPMoviePlayerController alloc] initWithContentURL:url ];
[ player setCurrentTime:95.0 ];
[ player play ];
```
```