我在最后一年的项目中还剩一个月,我正在尝试虚拟现实,尤其是A-frame。我有一个设置,其中有三个视频播放在文件中,他们都在当前自动播放,但我一直试图让他们暂停和点击播放,迄今为止没有成功。以下是我的代码片段,其中包含三个视频。任何帮助或指导将不胜感激。感谢。
<a-entity position="1.5 1.8 0">
<a-video src="#video" width="3" height="2" position="0 0.4 0" begin="click"></a-video>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut enim ad minim veniam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut enim ad minim veniam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut enim ad minim veniam.
</a-entity>
<a-entity position="-3 2 3" rotation="0 90 0">
<a-video src="#video" width="3" height="2" position="0 0.4 0" begin="click"></a-video>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut enim ad minim veniam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut enim ad minim veniam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut enim ad minim veniam.
</a-entity>
<a-entity position="3 2 7" rotation="0 -90 0">
<a-video src="#video" width="3" height="2" position="0 0.4 0" begin="click"></a-video>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut enim ad minim veniam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut enim ad minim veniam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut enim ad minim veniam.
</a-entity>