Google VR video doesn't load

旧时模样 提交于 2019-12-05 14:12:52

EDIT:

Set CORS headers - see http://enable-cors.org/server.html for server specific details

Jae Hun Daniel Hwang

Use two required parameters (width, height), then it works well without setting CORS headers.

However, I am now struggling to solve similar problem in the case of handling local or youbute 360 video. i.e. I can run just a provied example file but not real 360 files. Do you have any progress?

My post: https://stackoverflow.com/questions/41312283/how-to-play-youtube-360-videos-using-vrview-web

cf link. http://vcml.cafe24.com/humble.php

    window.addEventListener('load', onVrViewLoad);

    //It works
    function onVrViewLoad() {

      var vrView = new VRView.Player('#vrview', {
    	width: '100%',
    	height: 600,
    	video: 'http://storage.googleapis.com/vrview/examples/video/congo_2048.mp4',
    	
    	is_stereo: true,
      });
      
      //Now I'm struggling. Not working
      var vrView1 = new VRView.Player('#vrview1', {
    	width: '100%',
    	height: 600,
    	
    	video: 'https://www.youtube.com/embed/OkLa7jkFXpU',
    	//video: 'http://vcml.cafe24.com/video.mp4',
    	
    	is_stereo: false,
      });
    }
	Congo Video
  <div id="vrview"></div>
  
	Youtubu Video
  <div id="vrview1"></div>

Do not use this script <script src="//storage.googleapis.com/vrview/2.0/build/vrview.min.js"></script>,You have use <script src="vrview-master/build/vrview.js"></script> from the sample zip file.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!