【问题标题】:Why video in aframe doesn't work on mobile device为什么 aframe 中的视频在移动设备上不起作用
【发布时间】:2019-03-29 04:58:50
【问题描述】:

我测试了我的 web-VR 应用(我使用了 Aframe)。在桌面上,一切正常。但在我的手机(Android 操作系统)上,视频无法播放。有什么建议吗?

应用链接: https://mateuszlesko.github.io/ElblagAFrame/video.html

<a-assets>
                    <video id="penguin-sledding" autoplay='False' loop="false" material.repeat='None' src="Elblag1945.mp4">
                  </a-assets>

                  <!-- Using the asset management system. -->
<a-video src="#penguin-sledding" width="26" height="15" position="0 0 -20"></a-video>

【问题讨论】:

  • 您安装了 Google vr 服务吗?

标签: javascript html aframe webvr


【解决方案1】:

移动浏览器限制视频自动播放。视频播放必须由用户手势触发。更多信息在A-Frame FAQ。还要确保video format and codecs are supported 在您的设备/浏览器/操作系统版本中。

【讨论】:

    猜你喜欢
    • 2023-03-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-14
    • 1970-01-01
    相关资源
    最近更新 更多