Here is the code:
NSString *moviePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"video.mp4"];
MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:moviePath]];
moviePlayer.movieControlMode = MPMovieControlModeDefault;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(movieFinishedCallback:) name:MPMoviePlayerPlaybackDidFinishNotification object:moviePlayer];
[moviePlayer play];
Check out my new website: http://empowereddesignapps.tk
Please Subscribe Rate And Comment!
En esta página del sitio puede ver el video en línea Xcode Tutorial: How to play a Video de Duración hora minuto segunda en buena calidad , que subió el usuario ipodtouchhelper09 03 agosto 2009, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 32,500 veces y le gustó 41 a los espectadores. Disfruta viendo!