Tuesday, December 10, 2013

Who marching to a ipad play video examples. . ?


Reply:
http://www.cocoachina.com/bbs/read.php?tid-2970-keyword-% CA% D3% C6% B5% B2% A5% B7% C5.html
Reply:
Set the size of the video is not swollen proportional impact?
Reply:
Video examples of it! Use MPMoviePlayerController with this! MPmoviePlayerController * movePlayer create,
After [moviePlyaer play] can play a specific function other operations, you go and see it related API functions
Reply:
Call system interface is very simple, passing an address, and then play
Reply:
The reply was deleted at 2012-01-15 11:02:52 moderator

Reply:
- (Void) videoPlay
{
NSString * path = [[NSBundle mainBundle] pathForResource: @ "my1" ofType: @ "m4v"];
NSURL * url1 = [NSURL fileURLWithPath: path] ;/ / load playback path

MPMoviePlayerViewController * player = [[MPMoviePlayerViewController alloc] initWithContentURL: url1] ;/ / instantiate an object
Play[Self presentMoviePlayerViewControllerAnimated: player];
player.moviePlayer.movieSourceType = MPMovieSourceTypeUnknown ;/ / player type

[Player.moviePlayer play] ;/ / Play
}

Reply:
The principle is the local video playback, as the network
Reply:
download apple ios sample
Reply:
reference to the 6th floor xcy617617617 reply:
- (void) videoPlay
{
NSString * path = [[NSBundle mainBundle] pathForResource: @ "my1" ofType: @ "m4v"];
NSURL * url1 = [NSURL fileURLWithPath: path] ;/ / load playback path

MPMoviePlayerViewController * ......


Load playback path, the path of this play is what ah, URL thing? rstp :/ / or http://, I encountered such a problem, the video can be played in quicktime, but the browser to play unsuccessful. Thank you

No comments:

Post a Comment