Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

1

Freitag, 24. Oktober 2014, 12:20

Access to restricted URI denied

Hi, that's not a new issue but I would like to know if there is a workaround :
My krpano js and swf files are in a folder called krpano, all my tours are in another folder so I embed this way :

Quellcode

1
2
3
4
<script src="../krpano/swfkrpano.js"></script>
	<script>
		embedpano({swf:"../krpano/krpano.swf", xml:"mypano.xml", target:"pano", html5:"prefer", passQueryParameters:true});
	</script>

If I want to display my pano local it works perfect in flash but in html5 I have an error message (Access to restricted URI denied)
Online it works perfect flash and html5.

How can I make it work local in html5 ?

Thanx !

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Freitag, 24. Oktober 2014, 12:30

Did you try looking local with chrome?

Tuur *thumbsup*

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

3

Freitag, 24. Oktober 2014, 12:34

Yes Tuur, but chrome always loads flash version when opening local files even if html5 is set to prefer...

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

4

Freitag, 24. Oktober 2014, 12:52

Hum, it's not an embed problem...
I include the skin wich is in another folder like this :

Quellcode

1
<include url="../krpano/skin/myskin.xml" devices="desktop"/>

Is I remove this line then it works local in html5
I tried too with <include url="%SWFPATH%/skin/myskin.xml" devices="desktop"/> but it behaves the same...

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

5

Freitag, 24. Oktober 2014, 13:20

Zitat

Yes Tuur, but chrome always loads flash version when opening local files even if html5 is set to prefer...


Ah! Didn't realized that.
It is quite confusing for sometimes... I should say sometimes not... Haha

Tuur *thumbsup*

6

Montag, 27. Oktober 2014, 11:21

Hi,

this is a browser-side access restriction (typical from Firefox) when trying to access local files from an 'upper' folder.


Yes Tuur, but chrome always loads flash version when opening local files even if html5 is set to prefer...
This is a default behavior of the embedding script - Chrome doesn't allow to load local xml files in HTML5 - so instead of showing a loading error, the embedding script chooses to load Flash instead of HTML5. But by using html5=only the HTML5 viewer will be loaded also in Chrome locally.

Best regards,
Klaus