audio file

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

Wed Aug 17, 2022 6:02 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 371 times
if i click on the hs the following mask came:
K1600_Skizze (245).JPG
K1600_Skizze (245).JPG (76.87 KiB) Viewed 371 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: 271
Joined: Wed Oct 26, 2016 6:52 pm

Wed Aug 17, 2022 6:08 pm

I already thought of the second question myself.

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

Thu Aug 18, 2022 10:02 pm

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 16 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: 271
Joined: Wed Oct 26, 2016 6:52 pm

Fri Aug 19, 2022 12:26 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 336 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: 271
Joined: Wed Oct 26, 2016 6:52 pm

Mon Aug 22, 2022 4:11 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 263 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: 271
Joined: Wed Oct 26, 2016 6:52 pm

Mon Aug 22, 2022 4:27 pm

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

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