带有A-Frame的Mpd文件无法播放

问题描述 投票:0回答:2

我正在尝试使用A-Frame播放360度.mpd文件。这是codepen 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在这里不喜欢什么,或者我错过了什么。

html5 aframe mpeg-dash
2个回答
0
投票

好。我通过使用shaka播放器加载文件来实现它。 Dash.js也有效。所以不用担心。 A-Frame选择它并在文件加载外部库(如shaka或dash.js)后呈现它


0
投票

这是最基本的例子:

<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

© www.soinside.com 2019 - 2024. All rights reserved.