Page 1 of 1

audio file

Posted: Wed Aug 17, 2022 6:02 pm
by wiso
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 1686 times
if i click on the hs the following mask came:
K1600_Skizze (245).JPG
K1600_Skizze (245).JPG (76.87 KiB) Viewed 1686 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

Re: audio file

Posted: Wed Aug 17, 2022 6:08 pm
by wiso
I already thought of the second question myself.

i need to "translate" the path with the new path.

Re: audio file

Posted: Thu Aug 18, 2022 10:02 pm
by Hopki
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,

Re: audio file

Posted: Fri Aug 19, 2022 12:26 pm
by wiso
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 1651 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

Re: audio file

Posted: Mon Aug 22, 2022 4:11 pm
by wiso
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 1578 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

Re: audio file

Posted: Mon Aug 22, 2022 4:27 pm
by wiso
ok, got it! own hotspot field with own variable (var_audio_eng)
Skizze (250).png
Skizze (250).png (28.83 KiB) Viewed 1575 times

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