简体   繁体   English

从iOS设备流式传输视频/音频

[英]Streaming video/audio from iOS device

I have read several posts here about live streaming video/audio from iOS device while user is recording. 我在这里看了几篇关于用户录制时来自iOS设备的直播视频/音频的帖子。 Unfortunately it seems that there is not any "good" solution. 不幸的是,似乎没有任何“好”的解决方案。

I understand that I must have access to files while I am recording and then send files to server from which other users can watch my stream live (with a small time lag). 据我所知,在录制时我必须能够访问文件,然后将文件发送到服务器,其他用户可以在其中实时观看我的流(时间间隔很小)。

Working with iOS is not problem for me, I am more struggling with part where data should be handled to server and the whole processing on server. 使用iOS对我来说不是问题,我更难以处理数据应该处理到服务器以及服务器上的整个处理。

I have several questions: 我有几个问题:

  1. Saying just server is very vague, what "kind of" server it should be? 说服务器很模糊,它应该是什么样的“服务器”?
  2. I understand that I must use some protocol to send data TO server and then to get data FROM server so user can watch live video, what protocol should I use? 我知道我必须使用一些协议来发送数据服务器,然后服务器获取数据,以便用户可以观看实时视频,我应该使用什么协议?
  3. I feel very lost with whole server side processing, what should be done with files that were sent to server? 整个服务器端处理我感到非常迷茫,应该对发送到服务器的文件做些什么?
  4. All this seems to be very nontrivial is there any third party solution? 所有这些似乎都非常重要,是否有任何第三方解决方案? For example what technology apps like Periscope, Ustream or Meerkat use to provide live stream feature for their users? 例如Periscope,Ustream或Meerkat等技术应用如何为用户提供实时流功能?

I would also really appreciate if possible answers would more than one word long for each question. 如果可能的答案对于每个问题都有多个单词,我也会非常感激。

Please find my answers to your questions: 请找到我对你的问题的答案:

  1. There is a class of software called "media servers". 有一类称为“媒体服务器”的软件。 Eg Wowza, Red5, Nimble Streamer, nginx-rtmp-module and a few others. 例如Wowza,Red5,Nimble Streamer,nginx-rtmp-module和其他一些。

  2. Most common protocols for sending data TO media server are RTMP and RTSP. 用于向媒体服务器发送数据的最常见协议是RTMP和RTSP。 Watching the video is done via several ones like RTMP (requires Flash installed), HLS (native for iOS, supported by Android 4+, working on some web-players), DASH (supported by some players). 观看视频是通过RTMP(需要安装Flash),HLS(适用于iOS,适用于Android 4+,适用于某些网络播放器),DASH(由某些播放器支持)等几种方式完成的。

  3. No files needed, media server can process incoming live stream and handle connections from viewers. 无需文件,媒体服务器可以处理传入的实时流并处理来自查看者的连接。

  4. Basically they use combination of mentioned technologies plus their own "know-how". 基本上他们使用上述技术的组合加上他们自己的“技术诀窍”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM