Hi i need help for add Sound Effect when User Click Hotpot icon.just need to add sound effect when user click Hosspot icon..Thanks
Help Me to add Sound Effect when User Click Hotpot icon
-
-
Hi,
here a simple example with sound and graphics.
https://www.virtualtuur.com/krpano/120/examples/sound/1/
https://www.virtualtuur.com/krpano/120/exa…ound/1/tour.xmlalways preload your sounds like this
and onclick on hotspot
don't forget the soundinterface
Code<plugin name="soundinterface" keep="true" url="plugins/soundinterface.js" preload="true" volume="1.0" mute="false" worldscale="1.0" autopause="true" autounlock="true" />
Hope it helps!
Tuur -
@Tuur Thank you very much for your help :)
-
Tuur Hello Tuur, I was wondering if there was any way to combine two different onclick actions. For example, I want to add a sound to a hotspot but the hotspot that I would like to add it to also has an image that opens up.
-
Just put the 2 actions after eachother, separated with a semicolon...
like
<hotspot ... onclick="playsound('auto',sound/explosion.wav); openimage('image.jpg')" />
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!