Forum Discussion
DiarmaidCollins
5 years agoCommunity Member
Monitor JWPLayer video as Web Object complete
Okay, so I have changed from YouTube to JWPlayer now and have pretty much the same question as here. What is annoying about this is that this methodology below has worked in the past but it does not...
DiarmaidCollins
5 years agoCommunity Member
The ever-brilliant Matt Bibby got in touch and let me know that if I simply removed the inverted commas around the instances of the words TRUE and FALSE in my code the thing should work, and it does!
jwplayer().on('play', function(e) {
var player = window.parent.GetPlayer();
player.SetVar("zJWP_Completed", false);
player.SetVar("zJWP_Started", true);
});
jwplayer().on('complete', function(e) {
var player = window.parent.GetPlayer();
player.SetVar("zJWP_Completed", true);
player.SetVar("zJWP_Started", false);
});
function playVideo(){
playerInstance.play(true);
}
With inverted commas, Storyline sees a string. Without, it sees a True/False variable. So now you know.
No, don't ask me what a string is. I think there's a theory about that.
- JoeFrancis5 years agoCommunity Member
Couldn't resist. 😁
Related Content
- 2 months ago