Variable: Embed Code vs Insert Web Object

Oct 03, 2019

Anyone know why a variable does not display when using 'Embed Code' instead of 'inserting a Web Object' when referencing a Vimeo link to play a video?  SL is not displaying the size correctly when  'Inserting a Web Object' but does using 'Embed Code'.  But I need the variable to help trigger the end of the play.  New bug??

SL v3.32.20313.0

var videoStatus = parent.player.GetVar("videoStatus");

parent.player.SetVar("videoStatus",videoStatus);

var iframe = parent.document.querySelector('iframe');
var player = new Vimeo.Player(iframe);

player.on('play', function() {
console.log('played the video!');
});

player.getVideoTitle().then(function(title) {
console.log('title:', title);
});

1 Reply

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