audio file

Q&A about the latest versions
Post Reply
wiso
Posts: 282
Joined: Wed Oct 26, 2016 6:52 pm

hallo,
first the easy question:

made a custom property field on a hotspot. there is the path to a mp3 audio file (specially to this hotspot)
K1600_Skizze (244).JPG
K1600_Skizze (244).JPG (98.6 KiB) Viewed 2333 times
if i click on the hs the following mask came:
K1600_Skizze (245).JPG
K1600_Skizze (245).JPG (76.87 KiB) Viewed 2333 times
with what action and how i start playing the file?

second question is : the tour is bilingual, how can i assign the correct audio file to the correct language? ver7

thx,
wiso
wiso
Posts: 282
Joined: Wed Oct 26, 2016 6:52 pm

I already thought of the second question myself.

i need to "translate" the path with the new path.
User avatar
Hopki
Gnome
Posts: 13088
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi wiso,
With Hotspot Custom properties you are changing the variable only when the mouse is over the hotspot.
As you mouse away the data is lost.

So what you need is a Set Value action to set the value to a video element.
Please the attached project.

The hotspot sets the path to the video, and then the play/pause button can play the video.
However, clicking the point hotspot again will reset the video element as it set the path again.

Use a screen tint to cover the point hotspots when the video plays.
Regards,
Attachments
project.zip
(2.74 MiB) Downloaded 154 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
wiso
Posts: 282
Joined: Wed Oct 26, 2016 6:52 pm

works fine, thank you!

I have two more questions:

*) in my case i have audio files. but i also draw the video window for the output. in this case it doesn't matter how big it is and where it is, isn´t it?

*) how (with what visible function) can i change the play button to a pause symbol while the file is running?
Skizze (246).png
Skizze (246).png (401.42 KiB) Viewed 2298 times
However, clicking the point hotspot again will reset the video element as it set the path again.

Use a screen tint to cover the point hotspots when the video plays.
is not necessary in my case.

thank you very much,
wiso
wiso
Posts: 282
Joined: Wed Oct 26, 2016 6:52 pm

the way I imagined it does not work with the translation german/english audio file.
Skizze (247).png
Skizze (247).png (20.08 KiB) Viewed 2225 times
(with ikipedia link for german and english works like this)

it always plays the german file.

do i have to create a separate cutom hotspot field for the english link?

thx,
regards,
wiso
wiso
Posts: 282
Joined: Wed Oct 26, 2016 6:52 pm

ok, got it! own hotspot field with own variable (var_audio_eng)
Skizze (250).png
Skizze (250).png (28.83 KiB) Viewed 2222 times

then both variables as actions.
only execute if language is english (...or german)
Skizze (248).png
Skizze (248).png (138.5 KiB) Viewed 2223 times
thx,
greetings,
wiso
BParker
Posts: 80
Joined: Mon Jan 07, 2013 10:08 am
Location: Redlands, CA
Contact:

Hopki, I used the ht_audio component from your instructive sample project to add hot spots that play sound clips. It works great with one exception related to switching languages. My tour supports both English and Spanish. I provide two versions of each sound clip and use Poedit to control which is used for each language.

In simple terms, my problem is as follows:
• I select English
• I play sound hotspot #1; it plays in English
• I switch to Spanish
• I play sound hotspot #1; it still plays in English, which is incorrect
• I play sound hotspot #2; it plays in Spanish
• I try sound hotspot #1 again and now it plays in Spanish

So the audio hotspots seem to ignore a language change until a different audio hotspot is played.

Any suggestions? Thanks!
BParker
Posts: 80
Joined: Mon Jan 07, 2013 10:08 am
Location: Redlands, CA
Contact:

I found what appears to be a fix. If I put a dummy value in the "active_snd" variable during the mouse click that changes languages, the problem goes away and the audio hotspots respond to a language change the way they should.

Thanks!
User avatar
Hopki
Gnome
Posts: 13088
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

:D
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply