Sie sind nicht angemeldet.

1

Dienstag, 22. November 2011, 03:42

Sound reloads on each scene....HELP!!!

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!

Quellcode

1
2
			 -->										
							loadscene(get(scene[0].name), null, MERGE); 						buildthumbs();



Quellcode

1
		

2

Dienstag, 22. November 2011, 12:06

Hi Nicolas,

there is no example-link and the source-code you´ve posted does´nt contain any sound related code!

Best regards
Nupsi

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

3

Dienstag, 22. November 2011, 12:37

Do u have all the sound plugins etc outside the scene tags?
Tuur *thumbsup*

sasky

Anfänger

Beiträge: 17

Beruf: Trying to live as anybody else...

  • Nachricht senden

4

Mittwoch, 18. Januar 2012, 19:03

The Same Thing

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)? *unsure*

Part of code from layout.xml

Quellcode

1
2
3
4
5
6
<!-- 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

Quellcode

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
<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

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

5

Mittwoch, 18. Januar 2012, 21:26

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 *thumbsup*

Ps.. On mobile now...

sasky

Anfänger

Beiträge: 17

Beruf: Trying to live as anybody else...

  • Nachricht senden

6

Mittwoch, 18. Januar 2012, 22:11

Tuur!! You're the man! It's reasonable if you think about it and try to think like "program". Onstart works perfectly! *thumbsup*
Thanks .

scene tag is just my mistake cuz I didn't copy code from my editor just retype here... *g*


Best regards,
Martin *thumbup*