You are not logged in.

ramirox3

Intermediate

  • "ramirox3" started this thread

Posts: 354

Location: La Ceja, Colombia

Occupation: photographer

  • Send private message

1

Tuesday, July 26th 2016, 2:00am

play an audio file only once

Hello
I have a hotspot to activate an audio file.
This is the code:
<Hotspot name = "sonidoon" devices = "all" url = "on1.png" style = "tooltip" ath = "- 117" atv = "3779" scale.normal = "0.6" scale.mobile = "0.4" onover .desktop = "tween (scale, 1,0.5);" onout.desktop = "tween (scale, 0.6,0.5);"
onclick = "PlaySound (music, audio / 1.mp3 audio, loops = 1, keep = false);" visible = "true" keep = "false" onhover = "showText (Audio Click to activate);" />
It works well, but I want the audio file will play only once.
I've tried: loops = 1, loops = false, but always play infinitely.
how I must to make that the end of the audio, this may not play more?
Ramiro

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Tuesday, July 26th 2016, 8:27am

Hi)

Try

Source code

1
onclick = "playsound(music, 'audio/1.mp3',1);" 




Regards,

Alexey

ramirox3

Intermediate

  • "ramirox3" started this thread

Posts: 354

Location: La Ceja, Colombia

Occupation: photographer

  • Send private message

3

Tuesday, July 26th 2016, 10:54pm

Thanks, Alexei, it works fine
Ramiro
*thumbsup*

Similar threads