我試圖改變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,我知道它不是正確的做法,但請幫助:( –