Forum Discussion
SamanthaBerg
3 years agoCommunity Member
Embedded YouTube video, next button & Javascript
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 h...
SamanthaBerg
Community Member
Thanks for reply, I fully understand that you have to use JavaScript to call the WebObject and set a variable. I am asking for some help on how this is done. An expert in anything was once a beginner.
SteveGannon
3 years agoCommunity Member
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.