iPhone发送视频到iPad直播和无线控制(如AR无人机)

发布于 2024-12-10 19:34:55 字数 509 浏览 0 评论 0原文

如何将视频从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

囍孤女 2024-12-17 19:34:55

我见过的大多数应用程序都使用 AVFoundation 从摄像机捕获数据,然后将帧推送到某处的服务器。您可能不想推动每一帧。对于接收方,我将拥有一个托管网页的服务器,该网页带有查看 m3u8 播放列表的 html5 视频标签。将 iPhone 中的文件放入播放列表文件夹中。

<video src="http://yourserver.com/path/to/stream/yourPlaylist.m3u8">
    Your browser does not support the VIDEO tag
</video>

然后在 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.

<video src="http://yourserver.com/path/to/stream/yourPlaylist.m3u8">
    Your browser does not support the VIDEO tag
</video>

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文