Detect last slide from parent html when embedding storyline in an iframe

I'm hoping someone can help me. We're embedding the storyline content in an iframe in our site, and we would like to be able to detect when the user has reached the last frame of the storyline content so that the parent html can do something javascript-y like redirecting the user to a new page, or scrolling to a new section of the page.

We have done the "Publishing a Course for Web" thing and are hosting this content on the same server. The storyline content is being included on the page with this code: <iframe id="module_video" src="<filepath>"></iframe>


Do we need to construct some kind of trigger in the storyline editor? Or is there a way we can get the storyline object (like use getPlayer()) from the parent of the iframe and check a variable or something?

4 Replies