我尝试使用 a-frame 框架在 a-sphere 中显示 360 度视频。
我的代码如下:
<html>
<head>
<script src="https://aframe.io/releases/0.3.0/aframe.min.js"></script>
<script src="https://rawgit.com/donmccurdy/aframe-extras/v2.1.1/dist/aframe-extras.loaders.min.js"></script>
<title></title>
</head>
<body>
<a-scene>
<a-assets
<video id="antarctica" playsinline autoplay loop="true" src="130.mp4">
</a-assets>
<a-videosphere src="#antarctica"></a-videosphere>
<!-- Using the asset management system. -->
<a-camera position = "0 0 0">
<a-cursor color=#FFFFFF></a-cursor>
</a-camera>
</a-scene>
<script>
</script>
</body>
</html>
视频未显示在 iphone 浏览器中,如您所见,我尝试使用 playinline 属性。有人能指出我正确的方向吗?(它在安卓桌面上工作)
编辑:我将页面添加到我的主屏幕