Forum Discussion
DiarmaidCollins
Community 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.
JoeFrancis
4 years agoCommunity Member
Couldn't resist. 😁