audio file

Q&A about the latest versions
Post Reply
wiso
Posts: 281
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 1493 times
if i click on the hs the following mask came:
K1600_Skizze (245).JPG
K1600_Skizze (245).JPG (76.87 KiB) Viewed 1493 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: 281
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: 13005
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 68 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: 281
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 1458 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: 281
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 1385 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: 281
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 1382 times

then both variables as actions.
only execute if language is english (...or german)
Skizze (248).png
Skizze (248).png (138.5 KiB) Viewed 1383 times
thx,
greetings,
wiso
Post Reply