|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<!-- load the soundinterface plugin --> <plugin name="soundinterface" url="plugins/soundinterface.swf" alturl="plugins/soundinterface.js" rootpath="" preload="true" keep="true" /> <!-- start playing the sound --> <events name="currentpano" onnewpano="playsound(bgsnd, 'rad.mp3|rad.ogg', 0);" onremovepano="stopsound(bgsnd);" /> <!-- button to pause the sound: --> <plugin name="snd" url="soundonoff.png" align="leftbottom" x="10" y="10" alpha="0.25" scale="0.5" onover="tween(alpha,1);" onout="tween(alpha,0.25);" crop="0|0|50|50" onloaded="if(ismobile,set(scale,1));" onclick="pausesoundtoggle(bgsnd); switch(crop, 0|0|50|50, 0|50|50|50);" /> |
Was bedeutet "Sound-Button Element hinzu fügen"? Ich komme nicht weiter. Kann mir jemand eine xml-Datei oder einen Auszug aus einer geben mit der die Wiedergabe von Musik funktioniert?füge keep="true" zum und Sound-Button Element hinzu:
http://krpano.com/docu/xml/#plugin.keep
http://krpano.com/docu/actions/#loadpano
</plugin>
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 |
<krpano version="1.17" title="" onstart="startup();">
<include url="skin/vtourskin.xml" />
<plugin name="soundinterface"
url="plugins/soundinterface.swf"
alturl="plugins/soundinterface.js"
rootpath=""
preload="true"
keep="true"
/>
|
|
|
Source code |
1 |
<scene name="scene_01" title="1" onstart="playsound(bgsnd, 'rad.mp3|rad.ogg', 0);" thumburl="panos/01.tiles/thumb.jpg" lat="" lng="" heading=""> |
|
|
Source code |
1 2 3 4 5 6 7 |
<plugin name="soundinterface" url="plugins/soundinterface.swf" alturl="plugins/soundinterface.js" rootpath="" keep="true" onloaded="playsound(bgsnd, 'plugins/sound.mp3', 0);" /> |