ActivePresenter Saola Animate Pricing Download

Bottons from Video

Hi.
Is there a way to create PLAY, STOP and RESTART buttons for a video that is on the slide? I would not want to use the video player buttons

ActivePresenter
Windows 7

Hi,

You can use the following scripts to play, stop and restart a video:

Play:

prez.object('video name').animate(AP.EffectType.MEDIA_PLAY);

Stop:

prez.object('video name').animate(AP.EffectType.MEDIA_STOP);

Restart: seek the video to the end, wait a moment, then play it again. If it doesn’t work sometime, please increase the wait time.

var videoObject = prez.object('video name');
var wait = 500; //ms
videoObject.animate(AP.EffectType.MEDIA_PLAY);
videoObject.animate(AP.EffectType.MEDIA_SEEK);
setTimeout(function() {
    videoObject.animate(AP.EffectType.MEDIA_PLAY);
}, wait);

We’ll consider supporting media playback actions in the future.

Regards

1 Like

Hello, thanks. Worked perfectly.
I would like that when the video is over, a button appears, how do I do?

Unfortunately, it’s not possible with video started by script in the current version.
We’ll try to improve it in future releases.

Regards