Embedded YouTube video, next button & Javascript

Oct 26, 2022

Hi All,

I have a YouTube video embedded as a web object into Storyline.  Since Storyline cannot determine the duration of the video, I need to have the next button appear when the video ends.  I have searched the discussions and cannot figure this out, as it requires some JavaScript knowledge.  Are there any JavaScript gurus out there that can help me.

10 Replies
Robert Giebitz

Thanks for the reply, Jürgen, but you’re speaking beyond my skill level. I am a beginner. Are there specific steps I can follow, on a level of one-two-three, to get Storyline to advance to the next slide?

Rob

Robert P. Giebitz, PhD
Learning & Development Consultant, Office for Continuous Professional Learning, School of Medicine
Statistical Literacy Instructor, Department of Mathematics and Statistics
University of New Mexico
Albuquerque, NM 87131-0001
505-850-5815
盖澎博

Steve Gannon

Samantha,

If you carefully review this blog article and study the sample file provided, you can learn how to control YouTube videos via JavaScript from within Storyline:

https://www.rabbitoreg.com/2016/01/09/full-control-over-youtube-video-in-storyline/ 

In particular, near the end of the article (and in the code) you will see how the author used a custom variable called "End" to trigger a layer when the video ends. In your case, you could use this same variable with a trigger to activate your Next button.