基于Github 示例的代码,我添加了自己的 360 度视频,但在 Chrome 中不断出现控制台错误。
我的代码是:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
<script src="https://aframe.io/releases/0.2.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<video id="video" src="vid.mp4" autoplay loop></video>
</a-assets>
<a-videosphere src="#video" rotation="0 180 0"></a-videosphere>
</a-scene>
</body>
</html>
我收到以下错误: