I came out with this Java code but it doesn't seem to be working. Can someone help me please?
Here is the code:
Qualtrics.SurveyEngine.addOnReady(function()
{
var playCounter = 0;
function onFinished(){
playCounter++;
Qualtrics.SurveyEngine.setEmbeddedData("click1", playCounter);
}
$('videoPlayer').addEventListener('ended', onFinished);
});
click1 is my embedded data
video player is my video's ID
Best answer by mattyb513
View original