我试图改变videosphere的src属性在AFRAMEAFRAME:更改<A-videosphere> src属性
<a-assets>
<video id="vid" src="videos/vid1.mp4" webkit-playsinline loop></video>
</a-assets>
<a-videosphere src="#vid" rotation="0 180 0"></a-videosphere>
我使用目前改变#vid资产的src:
document.querySelector("#vid").setAttribute("src", "videos/vid2.mp4");
document.quertSelector("a-videosphere").play();
但视频仍然冻结和播放功能返回undefined
感谢所有帮助:)
嗨@ngokevin,如果你不介意,你可以请我聊天,我需要帮助aframe videosphere,我知道它不是正确的做法,但请帮助:( –