如何为 iPad 创建视频叠加?

发布于 2024-09-05 05:07:33 字数 172 浏览 3 评论 0原文

我想知道是否可以在 iPad 上创建类似“画中画”的内容 - 本机应用程序或基于网络的内容,这并不重要。 我从 mobile safari 开始,尝试看看是否可以同时播放两个视频,但是当我触摸一个视频时,另一个视频就会停止。我想知道是否可以在背景上加载视频,或者通过画布将其放在另一个视频之上。

感谢您的任何建议!

I would like to know if it is possible to create something like "Picture in Picture" on an iPad - native application or web-based content, it doesn't matter.
I started from mobile safari, trying to see if I can play two videos at the same time, but when I touch on one video, the other stops. I wonder if it could be possible to load a video on the background and maybe bring it on top of another video through a canvas for example.

Thanks for any suggestion!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

2024-09-12 05:07:33

根据我的经验和对 iPad 当前工作原理的理解,这是不可能的。

iPad 上的 Mobile Safari 为 Quicktime 窗口切出了一个洞,该窗口使用内置硬件加速来播放视频,以延长电池寿命。 (iPhone 和 iPod Touch 只需在单独的窗口中打开它即可达到相同的效果。)

该窗口与页面上的其他 HTML 不能很好地配合。事实上,我还没有找到一种方法让移动 Safari 在

Based on my experience and understanding of how the iPad currently works, this isn't possible.

Mobile Safari on the iPad cuts a hole for a Quicktime window , which plays back the video using the built in hardware acceleration to improve battery life. (The iPhone and iPod Touch just open it up in a separate window to achieve the same effect.)

This window doesn't play nicely with the other HTML on the page. In fact, I haven't found a way to get mobile Safari to display anything on top of a <video> tag. My guess is that this is because the hardware acceleration only allows for video scaling and positioning, and that it's only able to handle one video at a time.

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