Where I am running into a challenge is that Storyline creates an iFrame to hold slide content, and then the embed code also has an iFrame nested within the slide. I can't quite figure out how to point to it. Below is a sample of what I have attempted. Any suggestions or other approaches will be greatly appreciated. Thanks!
(delayed the call to ensure the iframe had time to load)
var iframe = document.querySelector('iframe').contentWindow;
var cframe = iframe.document.getElementById('ckpt1');
var player = new Vimeo.Player(cframe);
The variable iframe should contain the iframe created by Storyline to hold slide content, the variable cframe should contain the nested iframe with id='ckpt1', and the variable player should be the Vimeo player in the cframe.
I have an on pause event that should alert me that the video has been paused in the Vimeo player.
Thanks in advance for your help!