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

Can not use remote url source in vrview image #327

Open zzwooc opened 5 years ago

zzwooc commented 5 years ago

My web server host is a.com, my images are on b.com.

I used an url as the source image, like this:

let vrView = new VRView.Player('#vrview', {
    image: 'https://b.com/image.jpg',
    preview:  'https://b.com/preview.jpg',,
    is_stereo: true,
    is_autopan_off: true
});

But I got error like this:

GET https://a.com/index.html?image=https://b.com/image.jpg&preview=https://b.com/preview.jpg&is_stereo=true&is_autopan_off=true& 404

Can not VRView use an url as the source?