代码之家  ›  专栏  ›  技术社区  ›  Mustang

不播放带有A帧的Mpd文件

  •  1
  • Mustang  · 技术社区  · 8 年前

    我试着360度 .mpd 使用A型架归档。这是密码笔 example .

    视频根本不显示,控制台日志显示:

    components:texture:warn Video element was defined without src公司 nor SRC对象 attributes. three.js:20093 WebGL: INVALID_VALUE: texImage2D: no video 255index.html:1 [.Offscreen-For-WebGL-0x22a5f11bf200]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering. index.html:1 WebGL: too many errors, no more errors will be reported to the console for this context.

    请告知A-Frame在这里不喜欢什么,或者我遗漏了什么。

    2 回复  |  直到 8 年前
        1
  •  0
  •   Mustang    8 年前

    好啊我通过使用shaka player加载文件来实现它。猛冲js也可以工作。所以不用担心。一旦使用外部库(如shaka或dash)加载文件,A-Frame就会将其拾取并很好地渲染。js公司

        2
  •  0
  •   Utopiah    8 年前

    以下是最基本的示例:

    <html>
      <script src="https://cdn.dashjs.org/latest/dash.all.min.js"></script>
      <script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
      <a-scene>
        <a-assets>
          <video id="video" data-dashjs-player autoplay 
                 src="https://dash.akamaized.net/envivio/EnvivioDash3/manifest.mpd"></video>
        </a-assets>
        <a-videosphere src="#video"></a-videosphere>
      </a-scene>
    </html>
    

    依赖于 dash.js