Play Sound Effect on Button Click

_
Community Member Posts: 82 ☆ Roadie ☆
Comments
-
Wow, it's that simple - I'm a goose!
I actually got this working with Javascript by adapting @timk's awesome demo Lectora Player demo (can't link to it as the forum says there's a security error with my post??)
So I have the audio files at the top AU level and play them with Javascript, rather than having the audio files on every page which is nice.
-
However - a new issue!
My Javascript works fine when the audio is triggered by a user action (e.g. clicking) but not on anything "hands-off" (e.g. showing a hidden object).
My web browser blocks this as "autoplaying" audio... does anyone know of a workaround that doesn't involve the user manually turning this off in their browser? -
Lectora handles autoplay media by putting up a message "Tap / click here to continue" when you first launch the title. You should see this message if you have autoplay media on the first page or an "on show" action (or other "hands-off" action) that plays a media on the first page. If you have those on subsequent pages, Lectora will not show that message because the user would have done some interaction with the browser and the autoplay would work fine.
Do you see the message "Tap / click here to continue" ?
Categories
- 35.9K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 25 ELB Learning Content
- 25 ELB Learning Content Discussions
- 329 CenarioVR®
- 196 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 42 Rockstar Learning Platform®
- 39 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 936 All Things eLearning
- 37 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products