可以使用RTSP(实时流协议)将实时视频流从iPhone发送到媒体服务器吗? [英] Can RTSP (Real Time Streaming Protocol) be used to send live video stream from iPhone to a media server?

查看:522
本文介绍了可以使用RTSP(实时流协议)将实时视频流从iPhone发送到媒体服务器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是iOS和多媒体开发的新手,我正在开发一个应用程序,该应用程序将从iPhone的摄像头捕获视频并将实时流发送到媒体服务器.

此链接一个人在 stackoverflow 上问了一个问题,说他的应用程序被Apple拒绝了,因为他没有在应用程序中使用Apple HLS(HTTP Live Streaming)方法来接收实时流.

但是我的情况有所不同,因为我没有在iPhone中收到直播.

我必须将实时视频发送到媒体服务器,而不必将其保存在手机的内存中,以后人们可以通过Internet在其计算机上观看该视频.
因此,如果我使用RTSP将实时视频流发送到服务器可以吗,或者对于我来说还是必须使用Apple HLS?

谢谢.

解决方案

是的,您一定可以使用RSTP将视频流从ios应用发送到服务器,只要您不使用RSTP.苹果官方文档指出:

如果您的应用通过蜂窝网络提供视频,并且视频在5分钟内超过了10分钟的持续时间或5 MB的数据,则您需要使用HTTP Live Streaming."

因此,在将视频发送到服务器时应该使用什么协议没有任何讨论.

I am new to iOS and multimedia development and I am working on an application which will capture video from iPhone's camera and send the live stream to a media server.

In this link a person asked a question on stackoverflow saying that his application was rejected by Apple as he didn't use Apple HLS (HTTP Live Streaming) method in his application for receiving the live stream.

But my case is different as I am not receiving a live stream in the iPhone.

I have to send the live video to a media server without saving it in the phone's memory which will be later watched by people on their computers through internet.
So is it okay if I use RTSP to send the live video stream to a server or is it compulsory in my case as well to use Apple HLS?

Thanks.

解决方案

It's yes, you can definitely use RSTP to to send video stream from your ios app to a server as long as you do not stream it back to ios app using RSTP. Apple official documentation states that:

"if your app delivers video over cellular networks, and the video exceeds either 10 minutes duration or 5 MB of data in a five minute period, you are required to use HTTP Live Streaming."

So, it is not talking anything about what protocol you should use when you are sending video to the server.

这篇关于可以使用RTSP(实时流协议)将实时视频流从iPhone发送到媒体服务器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆