简体   繁体   English

我可以将视频从iPhone或iPad流式传输到服务器吗?

[英]Can I stream a video FROM my iPhone or iPad TO a server?

I want to live stream a video FROM iPhone to a remote server. 我想直播视频从iPhone到远程服务器。 Is that possible? 那可能吗? If yes, how to do it? 如果是的话,该怎么办? Please guide. 请指导。 I searched a lot but was not able to find a clear answer. 我搜索了很多,但未能找到明确的答案。 The AVFoundation framework helps to record the video. AVFoundation框架有助于录制视频。 But it can be streamed only when saved. 但它只能在保存时才流式传输。 I want to do a LIVE streaming. 我想做一个LIVE流媒体。

是的有可能您可以使用名为OPEN TOK的第三方库之前没有使用它但听到它非常有用也许你应该看看它是否有帮助谢谢

Yes you can do it but you will need a streaming server (wowza,red5,fms). 是的,你可以做到,但你需要一个流媒体服务器(wowza,red5,fms)。

After that, you just need to know how to get an h264 stream from the camera of your phone and publish it to your server. 之后,您只需要知道如何从手机的相机中获取h264流并将其发布到您的服务器。 It's possible through RTP/RTSP or through RTMP. 可以通过RTP / RTSP或通过RTMP实现。

To have some exemple, Livu code was released as an LGPL project 2 years ago. 举一些例子,Livu代码于2年前作为LGPL项目发布。 Code is available here : https://github.com/otmakie/LivuLib 代码可在此处获取: https//github.com/otmakie/LivuLib

You can also look at this topic : Uploading live streaming video from iPhone 您还可以查看此主题: 从iPhone上传实时流媒体视频

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

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