[英]Can RTSP (Real Time Streaming Protocol) be used to send live video stream from iPhone to a media server?
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. 我是iOS和多媒体开发的新手,我正在开发一个应用程序,它将从iPhone的摄像头捕获视频并将实时流发送到媒体服务器。
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. 在此链接中,一个人问了一个关于stackoverflow的问题,称他的应用程序被Apple拒绝了,因为他没有在应用程序中使用
Apple HLS
(HTTP实时流传输)方法来接收实时流。
But my case is different as I am not receiving a live stream in the iPhone. 但是我的情况有所不同,因为我没有在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
? 那么,如果我使用
RTSP
将实时视频流发送到服务器,还是可以的话,使用Apple HLS
是否也是强制性的?
Thanks. 谢谢。
我们的解释是,如果该应用程序是voip应用程序,则像会议一样需要特别考虑,否则,如果不在wifi上,则必须使用hls。
We have published an app sending real-time video from iPhone from server and it does not use HLS. 我们发布了一个应用程序,它从服务器发送来自iPhone的实时视频,它不使用HLS。 There are dozens of other apps in app store using proprietary protocols as well.
应用程序商店中还有许多其他使用专有协议的应用程序。 So the answer is no, it is not required to use HLS when streaming video from iPhone.
因此,答案是否定的,从iPhone流式传输视频时不需要使用HLS。
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. 是的,您一定可以使用RSTP将视频流从ios应用发送到服务器,只要您不使用RSTP将其流回到ios应用即可。 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."
“如果您的应用通过蜂窝网络提供视频,并且视频持续时间超过10分钟或在5分钟内超过5 MB数据,则您需要使用HTTP Live Streaming。”
So, it is not talking anything about what protocol you should use when you are sending video to the server. 因此,在将视频发送到服务器时应该使用什么协议都没有讨论。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.