我一直在尝试播放 mp4 文件,我正在从服务器接收 url,我已将其提供给 MPMoviePlayerController,播放器正在加载但文件未播放。这是代码...
NSURL *url = [NSURL URLWithString:obj->msg_url]; // obj->url is a html php url not a direct file url.
moviePlayer = [[MPMoviePlayerController alloc]
initWithContentURL:url];
moviePlayer.controlStyle = MPMovieControlStyleDefault;
moviePlayer.shouldAutoplay = YES;
[self.view addSubview:moviePlayer.view];
[moviePlayer setFullscreen:YES animated:YES];
所以在这种情况下,我如何使用 MPMoviePlayerController 从 html url 播放。任何的想法?
谢谢