初始化时的Google VR Web错误

时间:2016-11-30 22:26:50

标签: google-vr

我正在关注https://developers.google.com/vr/concepts/vrview-web上的文档中的示例。这是我的代码:              

 <head>
<script src="vrview.min.js"></script>
<script>
window.addEventListener('load', onVrViewLoad)
function onVrViewLoad() {
 var vrView = new VRView.Player('#vrview', {
 video: 'http://localhost/360/spa360injected.mp4',
 is_stereo: true,
 width:'640',
 height:'480'
});
}
</script>
</head>

<body>
<div id="vrview"></div>
</body>



</html>

我收到错误

vrview.min.js:1 GET http://localhost/index.html?video=http://localhost/360/spa360injected.mp4&is_stereo=true& 404 (Not Found)

这应该是一个即插即用的例子。我做错了什么?

0 个答案:

没有答案