You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, May 23rd 2014, 10:23am

HTML 5 not working on my site flash works fine

Hello

When i run my site krpano images works fine in flash and when i disable flash then it is giving error images are not loaded and these images are stored on amazon s3.

Link : http://devwww.getyourview.com/tour/agent/866
I have tried for html5 like that :-
<image type="CUBE" multires="true" progressive="true" tilesize="636">
<level tiledimagewidth="636" tiledimageheight="636">
<left url="<?php echo str_replace('/t_','/ll_',$tour['thumbnail_url'])?>"/>
<front url="<?php echo str_replace('/t_','/lf_',$tour['thumbnail_url'])?>"/>
<right url="<?php echo str_replace('/t_','/lr_',$tour['thumbnail_url'])?>"/>
<back url="<?php echo str_replace('/t_','/lb_',$tour['thumbnail_url'])?>"/>
<up url="<?php echo str_replace('/t_','/lu_',$tour['thumbnail_url'])?>"/>
<down url="<?php echo str_replace('/t_','/ld_',$tour['thumbnail_url'])?>"/>
</level>
</image>
================================JS===========================
var viewer = createPanoViewer({
swf:"/static/krpano/krpano.swf",
target:"x-swfobject",
xml:"/tour/Cubicpano/"+this.propertyId+"/"+tour_url + '?t=' + Math.random(),
height: this.displayHeight,
width: this.displayWidth,
passQueryParameters:true,
onerror: function(msg){
$('#x-objecttarget #gyvpanomessage').remove();
$('#x-objecttarget').append('<div id="gyvpanomessage" style="position:relative;top:48%;text-align:center;font-size:20px;color:white;background:#000;width:96%;margin:0px auto;">'+msg+'</div>');
$('#gyvpanomessage').fadeIn('slow').delay(5000).fadeOut('slow', function() { $(this).remove(); });
}
});
viewer.useHTML5("always");
viewer.embed();
=====================================And getting Error===========================
INFO: krpano 1.16.4 (build 2013-06-05)
INFO: Desktop/Win32 - Firefox 27.0 - WebGL
INFO: registered to: Nathan Enriquez
ERROR: loading of http://assets.getyourview.com/sys-1/lu_i…_1400751023.jpg failed!
ERROR: loading of http://assets.getyourview.com/sys-1/lf_i…_1400751023.jpg failed!
ERROR: loading of http://assets.getyourview.com/sys-1/lr_i…_1400751023.jpg failed!
ERROR: loading of http://assets.getyourview.com/sys-1/lb_i…_1400751023.jpg failed!
ERROR: loading of http://assets.getyourview.com/sys-1/ll_i…_1400751023.jpg failed!
ERROR: loading of http://assets.getyourview.com/sys-1/ld_i…_1400751023.jpg failed!

Please help me I have tried lot but didn't find any solution.

Thanks in advance.I am waiting for your response ASAP.

2

Wednesday, May 28th 2014, 2:58pm

Hi,

please see here:
http://enable-cors.org/server.html

and/or the 'example' here:
http://krpano.com/docu/xml/#security.cors

Quoted

Example:
If your Web-server is an Apache-server, the easiest way to enable CORS would be to put a .htaccess named file with the following content into the folder of the files that should be accessible:

Source code

1
Header set Access-Control-Allow-Origin "*"

Best regards,
Klaus