How to stop skipping to next slide - custom pause button (cpCmndResume = 1; )
Hi there.
I have custom navigation (for many reasons) and an issue with the pause button. It's a toggle button that checks if cpCmndPause != 1, and pauses the slide with a javascript containing cpCmndPause = 1; and continues using cpCmndResume = 1;. There is slide audio on many of the slides and some will also have audio triggered by buttons or connected to objects that are show/hidden.
This works fine, unless the playhead is at the end of the slide. the cpCmndResume = 1; then pushes the playhead along over to the next slide. I don't expect users to click the pause-button like maniacs, but this is a frame work for many course modules, and I'd like it to be robust.
I was thinking of finding the end frame of the slide when pausing, and have the button not do anything, in stead of resuming, if the playhead is at the end frame. But I'm unable to figure out how to find the end frame of a slide 😞
Can anyone think of a good workaround or alternative way of pausing?
