Javascript isn't working. | XM Community
Question

Javascript isn't working.

  • 23 June 2020
  • 0 replies
  • 12 views

Hey everyone. I want to play the videos (JWPLAYER), with the sound muted. But it's not working.
At first I tried completely in html, like this:

But for some reason the command cute just wouldn't work.
So I checked the JWPLAYER website and it suggested this:


HTML:

This text will be replaced with a player.


JAVACRIPT:

//create Qualtrics.SurveyEngine.QuestionData object

Qualtrics.SurveyEngine.addOnload(function()
{

jwplayer("myDiv").setup({
 "file": "VIDEO-FILE-URL",
 "height": 360,
 "width": 640,
"mute": true,
});
});


But the Java script seems to not do anything.
Does anybody have any advice?
Thanks a lot!



0 replies

Be the first to reply!

Leave a Reply