![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
Can someone help me to create it?
I have a tour with four images, and have an audio for each image.
I need a button on the 4 pictures to put the audio on mute or stop!
Thanks for any help!
Offline
pu2wxp wrote:
Can someone help me to create it?
I have a tour with four images, and have an audio for each image.
I need a button on the 4 pictures to put the audio on mute or stop!
Thanks for any help!
This is the documentation you need to hand code the features you want:
http://www.krpano.com/forum/wbb/index.p … readID=375
Perhaps the best way of implementing this would be to create a custom theme and add a button to toggle sound but I wouldn't know how to code that function in detail.
Some hints:
http://www.krpano.com/forum/wbb/index.p … f#post4892
I have requested the ability to place a sound on/off button on theme navigation bars via the GUI but it has yet to be developed.
Last edited by mediavets (2010-11-30 20:37:24)
Offline
I GOT IT!
mediavets wrote:
pu2wxp wrote:
Can someone help me to create it?
I have a tour with four images, and have an audio for each image.
I need a button on the 4 pictures to put the audio on mute or stop!
Thanks for any help!This is the documentation you need to hand code the features you want:
http://www.krpano.com/forum/wbb/index.p … readID=375
Perhaps the best way of implementing this would be to create a custom theme and add a button to toggle sound but I wouldn't know how to code that function in detail.
Some hints:
http://www.krpano.com/forum/wbb/index.p … f#post4892
I have requested the ability to place a sound on/off button on theme navigation bars via the GUI but it has yet to be developed.
Hi Andrew,
I caught parts of the example of Krpano for directional sound, picked up other parts of the links you sent, customize the audio button and the result is that code:
As I had 4 different audios for each of the 4 images in tour, I needed to insert this code in each corresponding XML, of course changing the name of the MP3.
<!-- sound buttom -->
<plugin name="soundbutton" url="coloniadata/graphics/spots/soundonoff.png" align="leftbottom" x="10" y="10" alpha="0.65" scale="1.0"
onover="tween(alpha,1);"
onout="tween(alpha,0.65);"
crop="0|50|150|50"
onclick="action(playorstopsound); switch(crop, 0|0|150|50, 0|50|150|50);" />
<!-- play stop sound -->
<action name="playorstopsound">
if(isplaying == true, stopsound(coloniadata/sounds/sound3); set(isplaying,false); , playsound(coloniadata/sounds/sound3, coloniadata/sounds/sound3.mp3); set(isplaying,true); );
</action>
<events onxmlcomplete="if(isplaying == true, stopsound(coloniadata/sounds/sound3);set(isplaying,false); );" />************
And, I needed to erase at the top of each XML, this part of code that loads automatically the audio (this because I had entered the audios in Panotour Pro):
<events onloadcomplete="playbackgroundsound(coloniadata/sounds/sound0.mp3,1);"/>
************
Only in the main XML I put this:
<plugin name="soundinterface" url="coloniadata/graphics/soundinterface.swf" preload="true" keep="true"/>
************
All audios are turned off by default.
To listen just click to listen every audio in its image.
Take look (regrets that the audio does not work on iphone/iPad):
http://www.vistapanoramica.com.br/mobil … lonia.html
Thanks
Offline
I'm glad you got it to work so quickly.
To me the states of the audio button seem back to front.
I'd expect it to display "audio off" when the audio is playing - to imply that if you click the button the audio will turn off; and vice versa.
Offline
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums YouTube channel Google+ |
COMPANY Blog About Kolor Resellers Contact Visit us |
PRESS Press center Press review TOOLS My account |
