iPhone发送视频到iPad直播和无线控制(如AR无人机)
如何将视频从 iPhone 发送到 iPad?
我正在构建一个机器人,它是 iPhone 控制 arduino,下一阶段我希望能够从 iPhone 发送一些实时流视频以在 iPad 中查看,并让 iPad 向 iPhone 发送命令。
那么如何将实时流媒体视频从一台设备发送到另一台设备(首选 WiFi 或蓝牙),以及如何通过无线从另一台设备控制一台设备?
编辑: 我打算做的最好的例子是 Parrot AR 无人机以及该玩具的另一个应用程序, 用于驾驶四轴飞行器的应用程序克隆
不同之处在于,我会从 iPhone 获取图像并将控制命令发送到 iPhone [从 iPad],而不是单独的硬件。
多谢!
How can I send video from an iPhone to an iPad?
I'm building a robot that is an iPhone controlling an arduino, for the next phase I would like to be able to send some live streaming video from the iPhone to see in an iPad and have the iPad sending commands to the iPhone.
so how to send live streaming video from one device to the other (WiFi preferred or BlueTooth), and how to control one device via wireless from the other?
EDIT:
The best example for what I intend to do is the Parrot AR Drone and another app for the toy,
app clone to pilot the Quadracopter
The difference is that I would be getting the image from an iPhone and sending the control orders to the iPhone [from an iPad] as well, not a separate hardware.
Thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我见过的大多数应用程序都使用 AVFoundation 从摄像机捕获数据,然后将帧推送到某处的服务器。您可能不想推动每一帧。对于接收方,我将拥有一个托管网页的服务器,该网页带有查看 m3u8 播放列表的 html5 视频标签。将 iPhone 中的文件放入播放列表文件夹中。
然后在 iPad 或计算机上设置视图以查看该网页。当然有一种更直接的方法可以将文件直接发送到 ipad 进行观看 - 但我喜欢能够从任何浏览器观看视频:)
如果您想远离 ipad 上的网络视图,您也可以使用就像通过网络检索任何文件一样。在我看来,网络视图是最简单的方法。
Most of the apps I've seen that do this use AVFoundation to capture data form the video camera - then push the frames to a server somewhere. You probably won't want to push every frame. For the receiving side of things I would have a server hosting a web page with an html5 video tag looking at an m3u8 playlist. Have your files from the iphone go into the playlist folder.
Then set your view on the ipad or computer to look at that webpage. There is for sure a more direct way of sending the files straight to the ipad for viewing - but I like being able to view the video from any broswer :)
If you want to stay away from a web view on the ipad you can also get the files as you would retrieve any file over a network. The web view is just the easiest way in my opinion.
如何在 XCode (iOS SDK) 中集成 Live555
希望如此有帮助!
How to integrate Live555 in XCode (iOS SDK)
hope this helps!