如何为 iPad 创建视频叠加?
我想知道是否可以在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据我的经验和对 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.