视频领域不起作用

时间:2018-04-19 15:04:59

标签: html aframe

视频领域不起作用。它显示白屏。视频无法播放。

<!DOCTYPE html>
<html>
<head>
<title>Hello, WebVR! - A-Frame</title>
<meta name="description" content="Hello, WebVR! - A-Frame">
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
  <a-assets>
    <video id="video" src="https://cdn.glitch.com/eb8b5b90-b564-46cc-a9bd-abd27ce76783%2Fvideo.mp4?1524149938496" autoplay="true" 
           loop="true" crossorigin="anonymous" playsinline webkit-playsinline></video>
  </a-assets>
  <a-videosphere id="video-screen" src="#video"></a-videosphere>
</a-scene>
</body>
</html>

它显示以下错误:错误:WebGL警告:drawArrays:目标0x0de1的活动纹理0是&#39;不完整&#39;,并将呈现为RGBA(0,0,0,1),按照GLES 2.0.24 $ 3.8.2:level_base的维度并非都是正面的。

1 个答案:

答案 0 :(得分:0)

aframe v0.8.0中存在错误:https://github.com/aframevr/aframe/issues/3444

修复工作在v0.8.2中完成:https://github.com/aframevr/aframe/commit/5ead860379ebe61d2ef1f2acbe2eed5537ccc682

因此,如果您将脚本src更改为“https://aframe.io/releases/0.8.2/aframe.min.js”,它将起作用。