Created
January 23, 2012 16:22
-
-
Save yfujiki/1664076 to your computer and use it in GitHub Desktop.
Play video in iPhone application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSURL * url = [[NSBundle mainBundle] URLForResource:@"video_file_name" withExtension:@"mov"]; | |
MPMoviePlayerViewController * vc = [[MPMoviePlayerViewController alloc] initWithContentURL:url]; | |
vc.moviePlayer.controlStyle = MPMovieControlStyleFullscreen; | |
[self presentMoviePlayerViewControllerAnimated:vc]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment