Skip to main content
jons1
Participant
January 15, 2017
Question

Using JavaScript to Play Videos (HTML5 Output)

  • January 15, 2017
  • 0 replies
  • 129 views

Hi,

I want to use button controls on a slide to manipulate videos on the slide. Rather than use the Action On Success: Show if the button is clicked, I want to use the Action Execute JavaScript. I can do the following in HTML with JavaScript but I can't get it to work in Captivate's Action Execute JavaScript.Script Window:

<button onclick="playVid()" type="button">Play Video</button>

var vid = document.getElementById("Video_1");

function playVid()

{

    vid.play();

}

    This topic has been closed for replies.