thexerteproject / xerteonlinetoolkits

Xerte Online Toolkits
www.xerte.org.uk
Apache License 2.0
62 stars 61 forks source link

Hotspot Image: Auto-play audiofile? #1259

Closed JMarco27 closed 8 months ago

JMarco27 commented 8 months ago

Is it possible to add as an an OP for a Hotspot, an audio file that autoplays when the hotspot is clicked on? This could either be as an alternative to the text that is displayed or in addition to it.

FayCross commented 8 months ago

@JMarco27 you can do this on hotspot image connector page already (remove destination page optional property, add sound optional property instead and change type to auto-play). I agree it could be useful to add to hotspot image page too though as I don't think it's necessarily obvious that hotspot image connector page can be used without destination pages.

ronm123 commented 8 months ago

@JMarco27 @FayCross you can already do this on the hotspot image page too but I guess it depends if you want the player to show or not. But for accessibility it's probably a good idea to have the player showing if you're going to set autoplay on because then at least the user has the ability to stop if they want. So with the normal hotspot page just use the editor toolbar to add the audio and set it to auto play. Obviously you can include or remove the text from what appears too.

JMarco27 commented 8 months ago

Many thanks @ronm123 and @FayCross . I tried out both your solutions and they worked well. I'll add them to the wiki page on Working with audio.