开发者

Pb with mpmovieplayercontroller

开发者 https://www.devze.com 2023-03-19 19:10 出处:网络
I need your help please: how can I delete this wihte line? NSString *AppFolderPath = [[NSBundle mainBundle] resourcePath];

I need your help please: how can I delete this wihte line?

Pb with mpmovieplayercontroller

NSString *AppFolderPath = [[NSBundle mainBundle] resourcePath];
NSString *MoviePath=[NSString stringWithFormat: @"/%@/%@", AppFolderPath,pathVideo];
NSLog(Mov开发者_JAVA技巧iePath);
NSURL *movieURL=[[NSURL fileURLWithPath:MoviePath]retain];
    movieController = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];
   [self addSubview:movieController.view];
   [movieController setMovieControlMode:MPMovieScalingModeAspectFit];
   [movieController setShouldAutoplay:YES];
   [movieController setFullscreen:YES animated:YES]; 


Actually I have also tried with same code. (Except that, setMovieControlMode: is removed since it was deprecated). But I 'm not getting that kind of line. Pl. try with another video.

0

精彩评论

暂无评论...
验证码 换一张
取 消