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.

1

Dienstag, 16. Dezember 2014, 19:21

Audio after entering a hotspot

Hello,

I would like to create a virtual tour that could automatically play an audioguide (mp3/ogg) after clicking on a hotspot.

I can create a vtour using pictures and linking them by hotspots (via the editor).

But how can I autoplay an audioguiode?

What I would like to create is something similar to that: http://exibit.quirinale.it/qvv/visitavirtuale/palazzo.html

The only thing I managed to do (unsuccessfully) for the moment is that:

1) Create a simple working vtour (two pictures linked by hotspots with the editor)

2) in tour.xml I did as follows:

a) add: <plugin name="soundinterface"
url="%SWFPATH%/plugins/soundinterface.swf"
alturl="%SWFPATH%/plugins/soundinterface.js"
preload="true"
rootpath="/"
volume="1.0"
mute="false"
/>

b) modified: <hotspot name="spot1" url="skin/vtourskin_hotspot.png" ath="-162.027" atv="13.785" linkedscene="scene_foto" onclick="playsound(auto,sounds/audio.mp3);"

But when I click on the hotspot I get "ERROR: soundinterface - loading of /sounds/audio.mp3 failed!"

The audio.mp3 file is in the "sounds" directory

What's wrong with that?

Thanks for your help :-)

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

2

Dienstag, 16. Dezember 2014, 22:37

Hi,
I'm on ipad right now but maybe first take the slash out of the rootpath in the plugin.
?
When that doesn't work i would try putting there ../
Not sure though, not on desktop now.
Tuur *thumbsup*

3

Dienstag, 16. Dezember 2014, 23:29


4

Mittwoch, 17. Dezember 2014, 09:33

Hello Tuur,

yes it was the / on rootpath; by removing it I could hear the audio. Thanks!

But why linkedscene="scene_foto" in the hotspot stuff does not work?

When I click on the spot I can only hear the audio, but I'm not taken to the scene I'm supposed to go...

Maybe is there another way to automatically play a specific audiofile whenever you get into the next scene in a vtour?

Thanks in advance for your help! *smile*

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

5

Mittwoch, 17. Dezember 2014, 11:23

I would call the playsound etc in the onstart of the scene.
Tuur *thumbsup*

6

Mittwoch, 17. Dezember 2014, 11:50

Thanks I'm almost there... *unsure*

is there a chance to put an audio control so a user can silence/stop the audio?

How can the audio be stopped when you move to another position? I tried to put onout="stopallsounds();" both on <hotspot> and <scene name> but it does not stop, moreover if you turn back a new audio is played overlapped to the first one...

I'm sorry to bother you with such a stupid question; I tried to search over the forum but I completely lost in tens of codes I can't understand where to put... *unsure*


Will you be so kind to help me? *g*

7

Donnerstag, 10. März 2016, 16:11

Autoplay sound in Mobile Devices

Hi Tuur

I have a similar question - autoplay sound in mobile devices.

I have this code

onstart="webvr.resetSensor(4.428); playsound(audioI,'audios/I.wav|audios/I.ogg', 1); "


it works fine on my desktop pc. But when i tried it on my smartphone, sometimes it starts without tapping the screen and sometimes it does not start. Any solution for this?