Javascript to change variable

Feb 15, 2017

Hi all,

I need to use javascript to change the value of a variable when an embedded video completes. The video is coming from Wistia. A couple of years ago, I was able to do able to do this but now the same code doesn't work. Here's the code. I have tried two variations but all are non-starters. Can any one help me with this?

  • removed this line <script type="text/javascript">
  • removed parent in this line var player = parent.GetPlayer();


<script type="text/javascript">
wistiaEmbeds.onFind(function(video) {
video.bind("end", function() {
var player = parent.GetPlayer();
player.SetVar("EndofVideo3","on");
return this.unbind;
});
});
</script>

Cheers,

Julie

2 Replies

This discussion is closed. You can start a new discussion or contact Articulate Support.