应用因未使用 HTTP 直播协议而被拒绝

发布于 2024-09-17 19:54:39 字数 941 浏览 8 评论 0 原文

我是否需要进行任何代码级更改才能通过 HTTP Live Streaming 协议播放我的视频?或者这更多是服务器问题,我需要重新编码视频等?

我们已审核您的申请,但是 无法将此版本发布到应用程序 存储因为它不使用 HTTP 直播协议,即 广播流需要 蜂窝网络上的视频 超过十分钟。我们有 包括以下附加详细信息 帮忙解释一下问题,希望 你会考虑修改并 重新提交您的申请。

这是我播放视频的方式。它只是指向 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];

}

Do I need to make any code-level changes to play my videos over HTTP Live Streaming protocol? or is it more a server issue, where i need to re-encode the videos etc?

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.

Here is how I am playing the video. It is just pointing to a 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];

}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一曲琵琶半遮面シ 2024-09-24 19:54:39

对我来说,这一切似乎都很简单。您在不使用 HTTP 直播。阅读Apple的 关于实时流媒体的文档,我猜问题完全是服务器端的,即如果您将媒体播放器对象指向实时流媒体 URL,它会自动找出答案。

It all seems quite straight forward to me. You are playing a stream for more than 10 minutes across the cell network without using HTTP live streaming. Having read through Apple's documentation on live streaming, I would guess the issue is entirely server side i.e. if you point the media player object at a live streaming URL, it'll figure it out automatically.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文