-
1. Re: Pause Event Sounds?
kglad Mar 12, 2014 12:57 PM (in response to mrwizzer2)use javascript to play and pause your sound.
-
2. Re: Pause Event Sounds?
mrwizzer2 Mar 12, 2014 1:06 PM (in response to kglad)Thanks for the reply, kglad.
The audio is synched tightly to the animation, so it would probably be best to have the audio's playback initiated by inserting it on the timeline. So I'm wondering how to use javascript to pause the audio that has already begun playing on the timeline.
Looking at the .js file that is exported when I publish the presentation, I see the timeline audio has an ID assigned to it, based on the name of the audio file placed on the timeline.
Giving that the audio's ID is labeled "myTimelineAudio", I've attempted to use the following javascript to pause the audio:
var myAudio = document.getElementById('myTimelineAudio');
myAudio.pause();
...but it's not working. Any suggestions?



