iphone - 应用因未使用 HTTP 实时流协议(protocol)而被拒绝

标签 iphone objective-c cocoa-touch app-store http-live-streaming

我是否需要进行任何代码级更改才能通过 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/

相关文章:

ios - 在iOS中使用UIDatePicker倒数计时器

选择取消按钮错误后的 iOS 11 UIImagePickerController

iphone - 带有图像和蓝色文本的 UIBarButtonItem 在禁用时错误地变成白色文本

ios - 需要对 URL 进行 NSString 编码。 CFURLCreateStringByAddingPercentEscapes 破坏了我的字符串

objective-c - 对于 Cocoa 应用程序,哪些文件应该受到版本控制?

objective-c - 创建带有章节标记的 MP4/M4A 文件

ios - 检查 UILocalNotification 弃用后是否启用了用户通知

ios - 没有兼容模式的 iPad 上的 iPhone 应用

iphone - iPhone 5/5th Gen iPod Touch 的加速度计/陀螺仪限制的变化?

ios - 文档目录中的图像数组