Using MPMoviePlayerViewController in SDK 3.2 for iPad

后端 未结 6 1891
迷失自我
迷失自我 2020-11-30 06:33

I\'ve developed an iPhone app that has been running MPMoviePlayer (pre 3.2 SDK) with no problems. I know this is a newbie question, but how do I get a movie to play in the

6条回答
  •  鱼传尺愫
    2020-11-30 06:56

    Try this in your view controller:

    MPMoviePlayerViewController* theMoviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:videoURL];
    [self presentMoviePlayerViewControllerAnimated:theMoviePlayer];
    

    This should get you started but check the MPMoviePlayerViewController Class Reference for detailed info.

提交回复
热议问题