【问题标题】:Mpd file with A-Frame does not play无法播放带有 A-Frame 的 Mpd 文件
【发布时间】:2018-01-26 18:26:32
【问题描述】:

我正在尝试使用 A-Frame 播放 360 度 .mpd 文件。这是密码笔example

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

components:texture:warn Video element was defined withoutsrcnorsrcObjectattributes. 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 在这里不喜欢什么,或者我错过了什么。

【问题讨论】:

    标签: html aframe mpeg-dash


    【解决方案1】:

    好的。我通过使用 shaka player 加载文件来让它工作。 Dash.js 也可以。所以不用担心。一旦文件加载了 shaka 或 dash.js 等外部库,A-Frame 就会将其拾取并很好地呈现它

    【讨论】:

      【解决方案2】:

      这是最基本的例子:

      <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

      【讨论】:

        猜你喜欢
        • 2019-07-26
        • 1970-01-01
        • 1970-01-01
        • 2021-11-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多