I am trying to create a page to show 360 photos I took with my Nexus 6 default camera app in panoramic mode.
Using the Google documentation, I created a local website "video360.dev"
<div id="vrview"></div>
remote hosted libraries seemed to get me further
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="//storage.googleapis.com/vrview/2.0/build/vrview.min.js"></script>
I tried, locally hosted image, image on my domain and an image hosting solution:
<script>
window.addEventListener('load', onVrViewLoad)
function onVrViewLoad() {
var vrView = new VRView.Player('#vrview', {
//Taken with nexus6 default camera app in panoramic mode
image: 'http://www.darrencousins.com/images/1.jpg',
// image: '1.jpg',
// image: 'https://image.ibb.co/jCpmGQ/1.jpg',
// video: 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/304756/rabbit360_HD_1280x640_low.mp4',
is_stereo: true,
width:'100%',
height:'800px'
});
}
</script>
To make sure I wasn't going mad, I "borrowed" a working video line from an existing codepen, it worked fine, it's just something about my image or hosting setup.
I made a codepen to try and remove the whole "local hosting" issue as I believe I have a CORS issue, but unsure how to solve it.
Any ideas how to fix this?