Problem: Custom play Button → Pause video after specific time
ActivePresenter version: 9.1.1
OS: Windows 11
Notes:
I built a custom play button and I want to start the slide when pressing the button and pause after a specific time automatically. E.g. after 5 seconds
And if I press the button again it should continue and pause after another 3 seconds. I use a variable for the different actions but I don’t know how to manage the time delay.
Would you like to pause only the video while the rest of the slide continues, or pause the entire slide?
Also, are the pause points fixed—for example, at 5 seconds and then 8 seconds—or should each click play for a specified duration from the current position?
In ActivePresenter 9.1.1, you can use Animated Timer objects to create the delays.
For example:
Insert two Animated Timers and set their durations to 5 seconds and 3 seconds.
Disable Start automatically for both timers.
Set the timers’ Opacity to 0% so that they are not visible on the slide.
Add the Pause Presentation action to each timer’s On Timer Complete event.
On the custom Play button’s On Click event, use your variable to:
Continue Presentation and start the 5-second timer on the first click.
Continue Presentation and start the 3-second timer on the next click.
When each timer completes, it will pause the presentation automatically.
In the newer ActivePresenter 10, we have added the Delay Next Action action. It allows you to delay the following action for a specified amount of time without using an Animated Timer or JavaScript. For example: Continue Presentation → Delay Next Action (5 seconds) → Pause Presentation
For the next condition: Continue Presentation → Delay Next Action (3 seconds) → Pause Presentation
During the delay, the presentation continues playing. Once the specified duration has elapsed, the following Pause Presentation action is executed.
Thank you very much. I tried it today and it works perfectly. But I have another problem now.
When the video is finished I show a reset button. I used to start and pause my timeline when I pressed the button. Is there a way to reset the video and the timer? I want to keep my variables when resetting.
In ActivePresenter 9.1.1, you can reset the setup without resetting the entire presentation or losing your variables.
On the On Click event of the Reset button:
Add an Adjust Variable action and set the system variable apCurrentSlideProgress to the timestamp where the video starts. The value is in milliseconds. For example, use 4000 if the video starts at 4 seconds.
Add an Execute JavaScript action to restore the two Animated Timers to their original values:
Please replace the timer names and values with those used in your project.
This will move the Main Timeline back to the beginning of the video and restore the timers to 5 and 3 seconds, while keeping the values of your other variables.
For your reference, ActivePresenter 10.6.0 and later also include the Go to Timeline Marker action. You can place a marker at the beginning of the video and use this action to return to that position directly, instead of setting apCurrentSlideProgress manually.
The Start Timer action does not have a Blocking option.
In ActivePresenter 9.1.1, if an action needs to wait until the timer finishes, you can add that action to the Animated Timer’s On Timer Complete event instead.
In ActivePresenter 10, the new Delay Next Action action provides this behavior more directly. It delays the following action for the specified duration without requiring an Animated Timer or JavaScript. For example:
thank you very much. That worked perfectly for me so far.
I recently figured a new problem.
I have several states in my textbox and with an arrow-button I change the shown text and I hide a grapic and show the video. When the video is shown it starts immediately and I can’t pause it with the “Pause Presentation”.
Is there any solution for that? I solved it by splitting it in two slides. But I’d prefer having it in one.
The upcoming release will include media playback actions, such as Play and Pause, to make this easier.
For now, you can keep everything on one slide using an interactive timeline. Add an Appear effect for the video at 0 seconds. If you want a button to appear when the video finishes, add an Appear effect for that button at the end of the video, based on its duration.
Then, use Start Timeline to start the video, and Pause Timeline / Continue Timeline to pause and resume it.