Xcode Tutorial: How to play a Video

Publicado em: 03 Agosto 2009
no canal de: ipodtouchhelper09
32,500
41

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!


Nesta página do site você pode assistir ao vídeo on-line Xcode Tutorial: How to play a Video duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário ipodtouchhelper09 03 Agosto 2009, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 32,500 vezes e gostou 41 espectadores. Boa visualização!