Pause Video after specific time

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.

Thank you

Hi,

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?

Regards,
Hoa

Hello,

Thank you

I’d like to pause the entire slide. I also change the text boxes when the desired part of the video is reached so pausing the slide would be optimal.

If each click could play for a specified duration from the current position would be better.

Regards,

Marion

Hi,

In ActivePresenter 9.1.1, you can use Animated Timer objects to create the delays.
For example:

  1. Insert two Animated Timers and set their durations to 5 seconds and 3 seconds.
  2. Disable Start automatically for both timers.
  3. Set the timers’ Opacity to 0% so that they are not visible on the slide.
  4. Add the Pause Presentation action to each timer’s On Timer Complete event.
  5. 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.

Best regards,

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.

Thank you in advance.

Hi Marion,

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:

  1. 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.
  2. Add an Execute JavaScript action to restore the two Animated Timers to their original values:
prez.setTimerValue('Animated Timer5s_name', 5);
prez.setTimerValue('Animated Timer3s_name', 3);

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.

Best regards,
Hoa

Thank You!

I have one more question. Is there a possibility to have the “blocking” function with the start timer?

The functions for ActivePresenter 10 sound interesting. I may have a look. Thank you.

Kind regards

Hi Marion,

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:

Continue Timeline → Delay Next Action (5 seconds) → Pause Timeline

Kind regards,

1 Like

Hello Hoa,

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.

Thank you in advance.

Hi Marion,

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.

Best regards,