You are not logged in.

J.J.

Beginner

  • "J.J." started this thread

Posts: 35

Location: Eisenstadt

Occupation: Systemadministrator

  • Send private message

1

Thursday, May 21st 2015, 2:35pm

Lokaler HTML5-Test

Gleich nochmal eine Frage:

Egal ob ich HTML5 als Parameter über die URL
übergeben möchte: „tour.html?html5=only“ oder Flash im Browser deaktiviere,
bekomme ich eine Fehlemeldung: "FATAL ERROR: .../musterhaus/tour.data/flur_eg/flur_eg.xml - xml parsing failed!"

Auch mit iphone-ipad-simulator.html:

In Zeile 92 setze ich den Parameter html5 auf only:

Source code

1
2
3
var viewer =
createPanoViewer({swf:"../../viewer/krpano.swf",
id:"krpanoSWFObject", html5:"only"});


Es wird folgende Fehlermeldung angezeigt: "FATAL ERROR: ../../../tours/musterhaus/tour.data/flur_eg/flur_eg.xml - loading failed! (NS_ERROR_DOM_BAD_URI: Access to restricted URI denied)"

Ändert man den oben genannten Parameter von "only" auf "auto" funktioniert die Anzeige.
Am Server selbst funktioniert die Tour auch auf
iPhone. Also sollte grundsätzlich HTML5 funktionieren. Wieso aber nicht lokal?

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
	<title>Musterhaus</title>
	<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<meta http-equiv="x-ua-compatible" content="IE=edge" />
	<style>
		@-ms-viewport { width: device-width; }
		@media only screen and (min-device-width: 800px) { html { overflow:hidden; } }
		html { height:100%; }
		body { height:100%; overflow:hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#000000; }
	</style>
</head>
<body>

<script src="../viewer/embedpano.js"></script>

<div id="augs_must" style="width:100%;height:100%;">
	<noscript><table style="width:100%;height:100%;"><tr style="vertical-align:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>
	<script>
		embedpano({swf:"../viewer/krpano.swf", xml:"../musterhaus/tour.data/flur_eg/flur_eg.xml", target:"augs_must", html5:"auto", passQueryParameters:true});
	</script>
</div>

</body>
</html>


LG Alex
J.J. has attached the following file:
  • flur_eg.xml (2.6 kB - 69 times downloaded - latest: Today, 4:52pm)

toosten

Intermediate

Posts: 521

Location: Berlin

Occupation: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )

  • Send private message

2

Friday, May 22nd 2015, 7:41am

Rufe die URL direkt im FireFox auf, der zeigt dir die Fehlerposition an!

J.J.

Beginner

  • "J.J." started this thread

Posts: 35

Location: Eisenstadt

Occupation: Systemadministrator

  • Send private message

3

Friday, May 22nd 2015, 7:59am

Hallo Toosten,

also wenn ich das HTML-File im FireFox öffne bekomme ich die schon oben erwähnte Fehlermeldung: "FATAL ERROR: .../musterhaus/tour.data/flur_eg/flur_eg.xml - xml parsing failed!"

toosten

Intermediate

Posts: 521

Location: Berlin

Occupation: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )

  • Send private message

J.J.

Beginner

  • "J.J." started this thread

Posts: 35

Location: Eisenstadt

Occupation: Systemadministrator

  • Send private message

5

Tuesday, May 26th 2015, 7:40am

Also Firefox gibt folgende Fehlermeldung aus: Screenshot1.jpg. Aber das kann es doch auch nicht sein!? Hier das komplette XML-File:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<krpano showerrors="true" version="1.18.4">

	<!-- plugins einbetten -->
	<!-- plugin name="editor" url="../../../viewer/plugins/editor.swf" keep="true" / -->
	<!-- plugin name="options" url="../../../viewer/plugins/options.swf" keep="true" / -->
	<!-- include url="../../../viewer/plugins/showtext.xml" /-->
	<!-- targetmarker -->
	<!-- plugin name="marker" url="../../../viewer/plugins/target.png" align="center" alpha="0.5" keep="true" / -->
	<!-- include -->
	<include url="../../text.xml" keep="true" />

	<view fovmin="50.0"
		fovmax="100.0"
	/>

	<autorotate enabled="true"
				waittime="20"
				speed="10.0"
	/>

	<image>
		<cube url="flur_eg_%s.jpg" />
		<mobile devices="mobile"> <cube url="mobile_%s.jpg" /> </mobile>
		<mobile devices="tablet"> <cube url="tablet_%s.jpg" /> </mobile>
	</image>


	<hotspot name="esszimmer_kueche"
			 url="../graphics/pfeil_nw.png"
			 ath="-100.00" atv="6.34"
			 edge="top"
			 onhover="showtext(K&uuml;che,tooltip);"
			 onclick="loadpano(../esszimmer_kueche/esszimmer_kueche.xml,null,KEEPVIEW,BLEND(1));"
	/>

	<hotspot name="buero_kinderzimmer_eg"
			 url="../graphics/pfeil_nw.png"
			 ath="-20.94" atv="13.70"
			 edge="top"
			 onhover="showtext(B&uuml;ro/Kinderzimmer,tooltip);"
			 onclick="loadpano(../buero_kinderzimmer_eg/buero_kinderzimmer_eg.xml,null,KEEPVIEW,BLEND(1));"
	/>

	<hotspot name="buero_eg"
			 url="../graphics/pfeil_no.png"
			 ath="-20.94" atv="6.17"
			 edge="top"
			 onhover="showtext(Büro,tooltip);"
			 onclick="loadpano(../buero_eg/buero_eg.xml,null,KEEPVIEW,BLEND(1));"
	/>

	<hotspot name="flur_og"
			 url="../graphics/pfeil_nw.png"
			 ath="82.09" atv="2.76"
			 edge="top"
			 onhover="showtext(Obergeschoß,tooltip);"
			 onclick="loadpano(../flur_og/flur_og.xml,null,KEEPVIEW,BLEND(1));"
	/>

	<hotspot name="wohnzimmer"
			 url="../graphics/pfeil_n.png"
			 ath="-73.25" atv="20.75"
			 edge="top"
			 onhover="showtext(Wohnzimmer,tooltip);"
			 onclick="loadpano(../wohnzimmer/wohnzimmer.xml,null,KEEPVIEW,BLEND(1));"
	/>

	<!-- video on tv -->
	<hotspot name="videospot"
			url="../../../viewer/plugins/videoplayer.swf"
			alturl="../../../viewer/plugins/videoplayer.js"
			videourl="video.mp4"
			distorted="true"
			ath="154.75"
			atv="-30.00"
			edge="center"
			scale="1.0"
			rx="-25"
			ry="27"
			rz="00"
			loop="true"
			width="185"
			height="110"
			pausedonstart="false"
			directionalsound="true"
			range="200"
			volume="0.7"
			onclick="togglepause();"
			/>

</krpano>


Da sind doch keine Umlaute oder sonstige Zeichen mehr drinnen die nicht sein dürfen? Wie bereits geschrieben wenn ich im html-File den Parameter html5 von "only" auf "auto" stelle funktioniert die Führung problemlos. Auch am Server gibt es keine Probleme. Weder am PC noch vom Tablet oder Smartphone.
J.J. has attached the following image:
  • Screenshot1.jpg

toosten

Intermediate

Posts: 521

Location: Berlin

Occupation: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )

  • Send private message

6

Tuesday, May 26th 2015, 8:38am

<mobile devices="mobile"> <cube url="mobile_%s.jpg" /> </mobile>
<mobile devices="tablet"> <cube url="tablet_%s.jpg" /> </mobile>

Doppelt geschlossene XML-Elemente!

"/>" & "</..>"

J.J.

Beginner

  • "J.J." started this thread

Posts: 35

Location: Eisenstadt

Occupation: Systemadministrator

  • Send private message

7

Tuesday, May 26th 2015, 1:21pm

Die Tags sind doch nicht doppelt geschlossen..

<mobile devices="mobile"> <cube url="mobile_%s.jpg" /> </mobile>

<mobile devices="tablet"> <cube url="tablet_%s.jpg" /> </mobile>

<mobile> wird mit </mobile> geschlossen. In der mitte ist ein in sich geschlossener Tag <cube/>

Oder irre ich mich jetzt total?

toosten

Intermediate

Posts: 521

Location: Berlin

Occupation: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )

  • Send private message

toosten

Intermediate

Posts: 521

Location: Berlin

Occupation: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )

  • Send private message

9

Tuesday, May 26th 2015, 2:12pm

&uuml; ist das Problem, also Zeile 32

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="UTF-8"?>
<krpano showerrors="true" version="1.18.4">

	<!-- plugins einbetten -->
	<!-- plugin name="editor" url="../../../viewer/plugins/editor.swf" keep="true" / -->
	<!-- plugin name="options" url="../../../viewer/plugins/options.swf" keep="true" / -->
	<!-- include url="../../../viewer/plugins/showtext.xml" /-->
	<!-- targetmarker -->
	<!-- plugin name="marker" url="../../../viewer/plugins/target.png" align="center" alpha="0.5" keep="true" / -->
	<!-- include -->
	<include url="../../text.xml" keep="true" />

	<view fovmin="50.0"
		fovmax="100.0"
	/>

	<autorotate enabled="true"
				waittime="20"
				speed="10.0"
	/>

	<image>
		<cube url="flur_eg_%s.jpg" />
		<mobile devices="mobile"> <cube url="mobile_%s.jpg" /> </mobile>
		<mobile devices="tablet"> <cube url="tablet_%s.jpg" /> </mobile>
	</image>
	
	<hotspot name="esszimmer_kueche"
			url="../graphics/pfeil_nw.png" 
			ath="-100.00" 
			atv="6.34" 
			edge="top" 
			onhover="showtext(Küche,tooltip);" 
			onclick="loadpano(../esszimmer_kueche/esszimmer_kueche.xml,null,KEEPVIEW,BLEND(1));"
	/>

	<hotspot name="buero_kinderzimmer_eg"
			 url="../graphics/pfeil_nw.png"
			 ath="-20.94" atv="13.70"
			 edge="top"
			 onhover="showtext(Büro/Kinderzimmer,tooltip);"
			 onclick="loadpano(../buero_kinderzimmer_eg/buero_kinderzimmer_eg.xml,null,KEEPVIEW,BLEND(1));"
	/>

	<hotspot name="buero_eg"
			 url="../graphics/pfeil_no.png"
			 ath="-20.94" atv="6.17"
			 edge="top"
			 onhover="showtext(Büro,tooltip);"
			 onclick="loadpano(../buero_eg/buero_eg.xml,null,KEEPVIEW,BLEND(1));"
	/>

	<hotspot name="flur_og"
			 url="../graphics/pfeil_nw.png"
			 ath="82.09" atv="2.76"
			 edge="top"
			 onhover="showtext(Obergeschoß,tooltip);"
			 onclick="loadpano(../flur_og/flur_og.xml,null,KEEPVIEW,BLEND(1));"
	/>

	<hotspot name="wohnzimmer"
			 url="../graphics/pfeil_n.png"
			 ath="-73.25" atv="20.75"
			 edge="top"
			 onhover="showtext(Wohnzimmer,tooltip);"
			 onclick="loadpano(../wohnzimmer/wohnzimmer.xml,null,KEEPVIEW,BLEND(1));"
	/>

	<!-- video on tv -->
	<hotspot name="videospot"
			url="../../../viewer/plugins/videoplayer.swf"
			alturl="../../../viewer/plugins/videoplayer.js"
			videourl="video.mp4"
			distorted="true"
			ath="154.75"
			atv="-30.00"
			edge="center"
			scale="1.0"
			rx="-25"
			ry="27"
			rz="00"
			loop="true"
			width="185"
			height="110"
			pausedonstart="false"
			directionalsound="true"
			range="200"
			volume="0.7"
			onclick="togglepause();"
			/>

</krpano>

10

Tuesday, May 26th 2015, 9:50pm

Versuche die XML explizit als UTF8 zu speichern.

J.J.

Beginner

  • "J.J." started this thread

Posts: 35

Location: Eisenstadt

Occupation: Systemadministrator

  • Send private message

11

Wednesday, May 27th 2015, 8:19am

Auf UTF8 zu speichern hat geholfen! Danke!