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.

augustommm

Anfänger

  • »augustommm« ist der Autor dieses Themas

Beiträge: 36

Wohnort: Goiânia-Goiás-Brazil

Beruf: Photographer

  • Nachricht senden

1

Freitag, 26. Februar 2016, 20:58

Sound files failing to open sometimes - 1.19 pr 3

Hello guys!

I've got a tour playing one sound background to each scene:

http://www.onzeonze.com.br/clientes/granfinestra_audio/



It's got 12 scenes, each loading a different .ogg file.

Here is my plugin loading code

Quellcode

1
<plugin name="soundinterface" url="plugins/soundinterface.swf" alturl="plugins/soundinterface.js" keep="true" preload="true" rootpath="" volume="1" onloaded=""/>



Here is the scene code with the event calling the audio files:

Quellcode

1
2
3
	<scene name="estar">
 		<events name="scene2events" onxmlcomplete="playsound(scene2sound,  %SWFPATH%/sounds/chovendo.ogg,1);" onremovepano="stopsound(scene2sound);" />
		<preview url="%SWFPATH%/panos/estar_L.tiles/preview.jpg" />		<image stereo="true" stereolabels="L|R">			<cube url="%SWFPATH%/panos/estar_%t.tiles/pano_%s.jpg" />			<cube url="%SWFPATH%/panos/estar_%t.tiles/mobile_%s.jpg" devices="iOS" />		</image>				<hotspot name="hall" style="btn_hall" ath="50" atv="0" rotate="0"  depth="12000" onclick="goto(hall);" />				<hotspot name="jantar" style="btn_jantar" ath="125" atv="0" rotate="0"  depth="12000" onclick="goto(jantar);" />				<hotspot name="cozinha" style="btn_cozinha" ath="100" atv="0" rotate="0"  depth="12000" onclick="goto(cozinha);" />				<hotspot name="lavabo" style="btn_lavabo" ath="65" atv="0" rotate="0"  depth="12000" onclick="goto(lavabo);" />				<hotspot name="suitemenina" style="btn_suitemenina" ath="-20" atv="-5" rotate="0"  depth="12000" onclick="goto(suitemenina);" />				<hotspot name="suitemenino" style="btn_suitemenino" ath="-10" atv="5" rotate="0"  depth="12000" onclick="goto(suitemenino);" />				</scene>


But the problem is that when navigating throught the scenes, sometimes the .ogg file is loaded, sometimes an error message shows:

Quellcode

1
ERROR: soundinterface - loading of ./sounds/grande.ogg failed!



Its happening both on local and remote.




Hope you can help me!

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Samstag, 27. Februar 2016, 10:38

Zitat

./sounds/grande.ogg
Removal of dots may help

Quellcode

1
sounds/grande.ogg

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

augustommm

Anfänger

  • »augustommm« ist der Autor dieses Themas

Beiträge: 36

Wohnort: Goiânia-Goiás-Brazil

Beruf: Photographer

  • Nachricht senden

3

Montag, 29. Februar 2016, 04:21

Thanks Piotr,


I've tried it, replaced %SWFPATH%/sounds/file.ogg with just sounds/file.ogg, and no ./ appeared anymore, but the problem persisted.


What else could it be?


The complete tour.xml file is attached.


Quoted


./sounds/grande.ogg

Removal of dots may help


Source code

1

sounds/grande.ogg


Piotr
»augustommm« hat folgende Datei angehängt:
  • tour.xml (15,77 kB - 87 mal heruntergeladen - zuletzt: Heute, 12:55)

4

Montag, 29. Februar 2016, 11:55

Thanks Piotr,


I've tried it, replaced %SWFPATH%/sounds/file.ogg with just sounds/file.ogg, and no ./ appeared anymore, but the problem persisted.


What else could it be?


The complete tour.xml file is attached.


Quoted


./sounds/grande.ogg

Removal of dots may help


Source code

1

sounds/grande.ogg


Piotr
Same problem. Mine works fine on the Chrome using my desktop pc. But the sounds do not play automatically when I am using my smartphone. Why? Well, most of the time the sounds do not play in my smartphone

I have 2 audios.

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

5

Montag, 29. Februar 2016, 14:35

But the sounds do not play automatically when I am using my smartphone. Why?

See here and here

Best Regards

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

augustommm

Anfänger

  • »augustommm« ist der Autor dieses Themas

Beiträge: 36

Wohnort: Goiânia-Goiás-Brazil

Beruf: Photographer

  • Nachricht senden

6

Montag, 29. Februar 2016, 20:06

Hello spacewirtalne,

Do you think you HTML 5 VR audio plugin would solve my problem?
It would be great if I could test it on my tour.

Still havent found the solution.

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

7

Montag, 29. Februar 2016, 21:42

Do you think you HTML 5 VR audio plugin would solve my problem?
You can not get around this for security reasons and limiting of IOS system.

It would be great if I could test it on my tour.
Open this link on your devices and test it.

Still havent found the solution.

You cannot go around this issue. The user must touch the screen and then sounds begin to play.



Best Ragards

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

8

Dienstag, 1. März 2016, 01:53

Is it possible to play 2 sounds simultaneously with autoplay on mobile devices? I know it is possible on pc.
But the sounds do not play automatically when I am using my smartphone. Why?

See here and here

Best Regards

Piotr

augustommm

Anfänger

  • »augustommm« ist der Autor dieses Themas

Beiträge: 36

Wohnort: Goiânia-Goiás-Brazil

Beruf: Photographer

  • Nachricht senden

9

Dienstag, 1. März 2016, 04:03

Quoted from "augustommm"



Do you think you HTML 5 VR audio plugin would solve my problem?
You can not get around this for security reasons and limiting of IOS system.
But I'm not using IOS whatsoever?
My problem is on desktop (PC and Mac) and Android
Quoted from "augustommm"



It would be great if I could test it on my tour.
Open this link on your devices and test it.
I've tested it, worked fine. But it doesnt mean my approach will work.
Quoted from "augustommm"



Still havent found the solution.
You cannot go around this issue. The user must touch the screen and then sounds begin to play.
Again, my problem has nothing to do with touch screen. It's a failure on loadind the audio files (.ogg in this case). It shows a message of fail to load ***
Best Ragards
Piotr
Thanks,
Augusto

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

10

Dienstag, 1. März 2016, 13:20

AHA *squint*

So, the sound does not work on PC?
I never had such problems with the Klaus soundinterface plugin.

Zitat

I've tested it, worked fine. But it doesnt mean my approach will work.

I don't know how to help. What approach do you mean?

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

augustommm

Anfänger

  • »augustommm« ist der Autor dieses Themas

Beiträge: 36

Wohnort: Goiânia-Goiás-Brazil

Beruf: Photographer

  • Nachricht senden

11

Mittwoch, 2. März 2016, 00:43

AHA *squint*

So, the sound does not work on PC?
I never had such problems with the Klaus soundinterface plugin.

Zitat

I've tested it, worked fine. But it doesnt mean my approach will work.

I don't know how to help. What approach do you mean?

Piotr
By approach I mean the way I wrote my tour.xml file.
Please check it out on the attachment.

Thanks!
»augustommm« hat folgende Datei angehängt:
  • tour.xml (15,77 kB - 84 mal heruntergeladen - zuletzt: Heute, 12:55)

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

12

Mittwoch, 2. März 2016, 11:03

Hi augustommm

You use *.ogg file only and this is maybe the problem.

playsound(scene1sound, 'sounds/night.ogg|sounds/missing.mp3',1);

Check the console of your browser if there are any errors.

Best Ragards

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

augustommm

Anfänger

  • »augustommm« ist der Autor dieses Themas

Beiträge: 36

Wohnort: Goiânia-Goiás-Brazil

Beruf: Photographer

  • Nachricht senden

13

Mittwoch, 2. März 2016, 20:23

Hello Piotr,


Thanks for helping me out!
You're a great guy!


I've converted the ogg files to mp3 and changed the 12 playsound commands to the way you wrote.
It looks like its giving less error messages, but they still show up.

Am I right using onnewpano events to start playsound ?

Quellcode

1
<events name="scene1events" onnewpano="playsound(scene1sound, 'sounds/night.ogg|sounds/night.mp3',1);" onremovepano="stopsound(scene1sound);" />



I've got 12 scenes and one different sound for each, can this be my problem?


Is this the right way to call the plugin?

Quellcode

1
<plugin name="soundinterface" url="plugins/soundinterface.swf" alturl="plugins/soundinterface.js" preload="true" />




The error message appears when I first open each scene, after that, the sounds are played properly.

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

14

Donnerstag, 3. März 2016, 10:05

Hi augustommm

If you testing locally it also did not work *question*

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

augustommm

Anfänger

  • »augustommm« ist der Autor dieses Themas

Beiträge: 36

Wohnort: Goiânia-Goiás-Brazil

Beruf: Photographer

  • Nachricht senden

15

Donnerstag, 3. März 2016, 11:36

Hello Piotr!


On localhost it's OK now, but the online one is still giving errors.


Thansk!
Augusto

augustommm

Anfänger

  • »augustommm« ist der Autor dieses Themas

Beiträge: 36

Wohnort: Goiânia-Goiás-Brazil

Beruf: Photographer

  • Nachricht senden

16

Donnerstag, 3. März 2016, 14:56

I made a test using other webserver and it worked.

Now i'll find out what is the problem with my webserver.


Thanks!

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

17

Donnerstag, 3. März 2016, 15:01

I'm glad you solved the problem *thumbup*

Best Regards

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

Ähnliche Themen