googlearchive / vrview

Library for embedding immersive media into traditional websites.
http://developers.google.com/cardboard/vrview
Apache License 2.0
1.71k stars 1.09k forks source link

Adding video as a vrView scene #310

Open mlg-apritykin opened 6 years ago

mlg-apritykin commented 6 years ago

I am able to have multiple scenes with images and hotspots to emulate a user walking around a specific area. I wanted to add one of the scenes as a 360 video, but when I set the video url to either a local video in the project or a file hosted publicly on S3 I get the following

Error Renderer: either image or video url must be specified

For example for that scene I have the following

victorymoment: {
            video: 'myvideo.mp4',
            hotspots: {
            }

Also tried

victorymoment: {
            video: 'HTTP URL TO MY VIDEO',
            hotspots: {
            }
parimaay commented 6 years ago

You need to make sure of the video path, probably you are not setting it correctly. If you are setting it like video: 'myvideo.mp4' you need to put myvideo.mp4 in the same level as you js file that is accessing it.