Hello everybody,
Can anyone help me with the sound interface? i just want a continuos sound on the backgroud of my tour but i can,t make it work.
The sound is loaded in each pano every time i navigate from one pano to another.
Here is my xml and the example online.
I really apreciate your help!
Thanks!
Sound reloads on each scene....HELP!!!
-
-
Hi Nicolas,
there is no example-link and the source-code you´ve posted does´nt contain any sound related code!
Best regards
Nupsi -
Do u have all the sound plugins etc outside the scene tags?
Tuur -
The same issue :(
I have main.xml file where I keeps my scenes and my layout.xml file where I keep all actions, events and other stuff.
here is my code and the issue is refreshing sound when enter to other pano (another scene)?Part of code from layout.xml
Code<!-- Sound interface --> <plugin name="soundinterface" url="soundinterface.swf" alturl="soundinterface.js" volume="0.35" rootpath="" preload="true" keep="true" /> <events onloadcomplete="playMusic();" /> <action name="playMusic"> playsound('Music', 'layout/music.mp3', loops='0') </action>
and
Main.xml file code
Code
Display More<krpano version="1.0.8.14" onstart="panoLoader();"> <action name="panoLoader"> <!-- load the [N] scene 0 - first scene --> loadscene(get(scene[0].name), null, MERGE,BLEND(2)); </action> <include url="layout/layout.xml" keep="true" /> <scene name="room1" title=""> <view hlookat="28" vlookat="5" fovtype="MFOV" fov="110" maxpixelzoom="0.2" fovmax="110" limitview="auto" /> <preview url="room1.tiles/preview.jpg" /> <image> <cube url="room1.tiles/pano_%s.jpg" /> </image> <hotspot handcursor="true" name="goto_room2" url="hotspot.png" ath="4" atv="0" scale="1.0000" zoom="true" alpha="1" onover="tween(alpha,0.75);" onout="tween(alpha,1.0);" onclick="loadscene(room2 ,null,MERGE ,BLEND(2)); " /> .... </krpano> </scene>
BEST REGARDS,
Martin -
Try to put the play music action in the onstart or onxmlcomplete..
Instead of onloaded.Also you have a scene tag outside the krpano ones.
Tuur
Ps.. On mobile now...
-
Tuur!! You're the man! It's reasonable if you think about it and try to think like "program". Onstart works perfectly!
Thanks .scene tag is just my mistake cuz I didn't copy code from my editor just retype here...
Best regards,
Martin
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!