我是否需要进行任何代码级更改才能通过 HTTP 实时流媒体协议(protocol)播放我的视频?还是服务器问题,我需要重新编码视频等?
We've reviewed your application, but cannot post this version to the App Store because it is not using the HTTP Live Streaming protocol, which is required for broadcasting streaming video over the cellular networks for longer than ten minutes. We have included additional details below to help explain the issue, and hope you’ll consider revising and resubmitting your application.
这是我播放视频的方式。它只是指向一个 CloudFront URL:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
STVideo *mySTVideo;
mySTVideo = [items objectAtIndex:indexPath.row];
moviePlayerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:mySTVideo.video_url]];
moviePlayerViewController.view.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"st-screen.png"]];
[self presentMoviePlayerViewControllerAnimated:moviePlayerViewController];
[moviePlayerViewController release];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
最佳答案
对我来说,这一切似乎都很简单。您在未使用 HTTP live streaming 的情况下通过手机网络播放流媒体超过 10 分钟.通读了 Apple 的 documentation on live streaming ,我猜问题完全出在服务器端,即如果您将媒体播放器对象指向实时流媒体 URL,它会自动解决。
关于iphone - 应用因未使用 HTTP 实时流协议(protocol)而被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3623136/