0

我正在开发一个流式传输视频的应用程序。我使用此代码流式传输视频:

NSURL *fileURL=[[NSURL alloc]initWithString:self.content.trialURL];
moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL];
[moviePlayerController.view setFrame:CGRectMake(0, 70, 320, 270)];
[self.view addSubview:moviePlayerController.view];
moviePlayerController.fullscreen = YES;
[moviePlayerController play];

[[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(movieExitFullScreen:)
                                             name:MPMoviePlayerWillExitFullscreenNotification
                                           object:moviePlayerController];
_isMPlayerMode = YES;

网址是http://server5.sefr-yek.com:8081/lifetest/downloadMedia.do?method=content&url=772/trial/test.mp4_conv.mp4

后端具有可以访问缓冲文件并发送到 iphone 的文件的操作。但 iPhone 无法播放,一直处于加载状态。android设备播放视频没有问题,但iPhone无法播放。

我的代码有什么问题?

4

0 回答 0