应用因未使用 HTTP 实时流媒体协议而被拒绝

编程入门 行业动态 更新时间:2024-10-27 12:33:30
本文介绍了应用因未使用 HTTP 实时流媒体协议而被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我是否需要进行任何代码级更改才能通过 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 发布];[tableView deselectRowAtIndexPath:indexPath 动画:YES];}

解决方案

在我看来,这一切都很简单.您在没有使用 HTTP 直播.阅读了 Apple 的 关于实时流媒体的文档,我猜这个问题完全出在服务器端,即如果您将媒体播放器对象指向实时流媒体 URL,它会自动找出来.>

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];

}

解决方案

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.

这篇关于应用因未使用 HTTP 实时流媒体协议而被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-17 08:42:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/909117.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:流媒体   实时   被拒   协议   HTTP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!