Forum Discussion
Background audio feature
Hi Team,
I am developing an eLearning module. I have added background audio features for main slides and in the next scene, I have created assessments.
I know that this audio feature is applicable for all slides. Now I don't want the BG audio to be played for assessments slides. Kindly suggest any ideas or we have any JavaScript's there for this new feature.
Meanwhile, In the background audio settings, there is an option which says that pause the background audio when a video plays in the slide. So, I have added a small video, and I kept it outside the slide work area in reduced form. Then it is working fine as per my requirement, then I tried to copy the same for all assessment slides. But the Bg audio plays for microseconds and then the Bg audio went mute. But the audio jerk, seems not nice. The idea just works fine for one slide only.
I know this is a new feature. But if anybody has any inputs, please let me know.
- Jürgen_Schoene_Community Member
here some Javascript (Storyline 3.76) to control the background music
toggle background music:
DS.courseAudio.toggleEnabled();
start background music:
if( !DS.courseAudio.enabled() ){
DS.courseAudio.toggleEnabled();
}stop background-music
if( DS.courseAudio.enabled() ){
DS.courseAudio.toggleEnabled();
}https://360.articulate.com/review/content/ffb0f380-0b73-4f33-bf02-760a5a9a7767/review
I have not tested what happends if mixing normal audio/video and background music