You are not logged in.

1

Tuesday, March 26th 2019, 5:48pm

Load 360 video from another source

Hi, is there a possibility to load a 360 from another place?
I tried to load a video like this, but not worked:



<action name="add_video_sources">
videointerface_addsource('1024x512', 'http://www.lightcave.com.br/video/vrmidia.mp4|%CURRENTXML%/uploads/video/iphone-audio.m4a', '%CURRENTXML%/uploads/video/video-1024x512-poster.jpg');
videointerface_addsource('1920x960', 'http://www.lightcave.com.br/video/vrmidia.mp4|%CURRENTXML%/uploads/video/iphone-audio.m4a', '%CURRENTXML%/uploads/video/video-1920x960-poster.jpg');

if(device.ios,
<!-- iOS Safari has a very slow 'video-to-webgl-texture' transfer, therefore use a low-res video by default -->
videointerface_play('1024x512');
,
videointerface_play('1920x960');
);
</action>




Is there any possibility to do it?

2

Wednesday, March 27th 2019, 4:45pm

Hi,

yes, that's possible, but the video on the external server need to have CORS headers to allow the browser accessing it.

Please see here for more:
https://enable-cors.org/server.html

Best regards,
Klaus