简体   繁体   English

可以使用RTSP(实时流协议)将实时视频流从iPhone发送到媒体服务器吗?

[英]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.

相关问题 应该使用哪种协议将视频流发送到媒体服务器以进行实时流传输? - Which protocol should be used to send video stream to a media server for live streaming? 如何通过iOS应用程序使用实时流协议(RTSP)连接到媒体服务器? - How to connect to a media server using Real Time Streaming Protocol (RTSP) from an iOS application? 在iPad上使用HLS(HTTP直播流)或RTSP(实时流媒体协议)进行电视流媒体 - TV streaming with HLS (HTTP Live Streaming) or RTSP (Real Time Streaming Protocol) on the iPad 如何从iphone相机获取实时视频流并将其发送到服务器? - How to get real time video stream from iphone camera and send it to server? 使用HTTP Live Streaming从iPhone应用程序流式传输音频/视频 - Stream Audio/Video from an iphone app using HTTP Live Streaming 如何将从iPhone相机拍摄的视频发送到服务器进行直播? - How to send the video captured from iPhone's camera to a server for live streaming? 如何将实时视频从iOS流传输到Flash Media Server - How to streaming live video from iOS to Flash Media Server iPhone Live视频流媒体播放器 - iPhone Live Video Stream Media Player iPhone可以流式传输彩信,RTSP(RTP,SDP),HTTP渐进式流媒体,HTTP直播(M3U8)文件 - Can iPhone stream MMS, RTSP (RTP, SDP), HTTP progressive streaming ,HTTP live streaming (M3U8) files 彩信视频流在iPhone上? (Microsoft Media Server) - mms video streaming on iPhone? (Microsoft Media Server)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM