Skip to main content
Participating Frequently
May 23, 2017
Question

Insert video and overlap object

  • May 23, 2017
  • 2 replies
  • 418 views

I have inserted video by using event video option. i want to add help button by clicking help popup will appear on that running video once the popup is appear the video should stop. Is it possible by advance action?

This topic has been closed for replies.

2 replies

R_H__
Inspiring
May 24, 2017

It is possible to stop and play event video with a separate button, so long as you are publishing to HTML5.

Execute JS action for pause:

document.getElementsByTagName("video")[0].pause();

Execute JS action for play:

document.getElementsByTagName("video")[0].play();

All credit goes to TLC.

Button that pauses the event video...

Participating Frequently
May 26, 2017

how this js works

R_H__
Inspiring
May 26, 2017

On your help button Advanced Action (for open), add in an action of Execute Javascript, using "current" window and paste in:

document.getElementsByTagName("video")[0].pause();

Lilybiri
Legend
May 23, 2017

No, stopping a video by Captivate control is only possible with multi-slide synchronized video. Event video plays totally independent from Captivate. Maybe this article is worth reading:

Pausing Captivate's Timeline - Captivate blog