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