Variable: Embed Code vs Insert Web Object
Oct 03, 2019
By
Diana Stock
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
Hi Diana!
Sorry that you've hit this snag! I'm happy to dig deeper to see what's happening.
Do you mind sharing your file with us? You can do so by using the "add attachment" button in this discussion. Or you can share the file privately with our Support Engineers by using this link.
This discussion is closed. You can start a new discussion or contact Articulate Support.