Solved
How to show next button only after a video (inserted as media file) is finished playing?
Hi,
I have a video which I added to a question, using the "Insert Media" option. It's an .mp4 that I uploaded to the files library. I want the next button to be disabled until the video is finished playing. How can I do it with JS code? All the examples that I found refered to videos from YouTube...
Thanks in advance!
Best answer by TomG
Your html is wrong. The id "myVideo3" should be on the video tag.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

And the question's JS code looks like this:
Qualtrics.SurveyEngine.addOnReady(function() {
var qobj = this;
qobj.hideNextButton();
jQuery("#myVideo3").on("ended", function() { qobj.showNextButton() });
});
What am I missing here?
I have a branch logic so actually there are 2 questions with videos, but only one is displayed each time. I gave each question's video a different ID (myVideo2 or myVideo3) and the question's corresponding JS code refers to the specific video ID,accordingly.....
Any idea what is wrong with this configuration?
Many thanks!