0
我试图在我的笔记本电脑上用Aframe平台在本地播放球体视频存储。 首先,我用这个视频:https://ucarecdn.com/bcece0a8-86ce-460e-856b-40dac4875f15/它的工作,但是当我下载这个视频,并更改链接本地链接:http://localhost/webvr/testvr.mp4/,它没有工作。 我的浏览器是Chrome版本56 这是HTML代码我与通过Aframe播放本地球体视频
<head>
<title>My A-Frame Scene</title>
<script src="https://aframe.io/releases/0.3.0/aframe.min.js"></script>
<script src="https://rawgit.com/oscarmarinmiro/aframe-video- controls/master/dist/aframe-video-controls.min.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<video id="video_1" crossorigin src="http://localhost/webvr/testvr.mp4/"></video>
</a-assets>
<a-camera position="0 0 5">
<a-cursor id="cursor" color="yellow"></a-cursor>
</a-camera>
<a-videosphere src="#video_1" rotation="0 180 0"></a-videosphere>
<a-entity video-controls="src:#video_1"></a-entity>
</a-scene>
尝试在视频'src'结尾删除多余的“/”。 此外,请尝试转到网址“http://localhost/webvr/testvr.mp4”,并确保您可以访问它。 – jhsu
我通常可以通过本地主机访问我的视频,并删除了“/”,但它仍然无法正常工作。你还有其他解决方案吗? –
只是在Firefox中尝试相同。我得到我的视频播放在Firefox中,但不是在铬 – AishApp