Explore the community Forums Lectora Inspire Tools Questions & Answers Controlling Background Audio in seamless play Reply To: Controlling Background Audio in seamless play

#390268 Score: 0
Profile photo of Darrel Somoza
Darrel Somoza
Member
contributor
friend finder
beginner
intermediate
junior moderator
advanced
wise owl
curious george
profile
209 pts
@Klaatu

Change the action on the play/pause button and replace with this runJS script:

if (getDisplayWindow().a001_occasions_for_tea_occasions_for_tea_BkAudioMedia.paused == true) {
getDisplayWindow().a001_occasions_for_tea_occasions_for_tea_BkAudioMedia.play();
} else {
getDisplayWindow().a001_occasions_for_tea_occasions_for_tea_BkAudioMedia.pause();
}

Of course this is just ugly, it can be made more elegant. Let me know if this works for you.

Darrel