We re-initialize Deck.js when we add new slides. Unfortunately, this causes the presentation to be moved back to the first side, which then moves the audio back to time 0:00. When adding a new slide, we must...
preserve the current time
preserve the current slide if the currentTime falls in its interval (i.e. don't worry if we're off in an empty part of the timeline and happen to have slide X active.)
otherwise, if currentTime falls within the interval of a new slide, activate that slide
We re-initialize Deck.js when we add new slides. Unfortunately, this causes the presentation to be moved back to the first side, which then moves the audio back to time 0:00. When adding a new slide, we must...