Forum Discussion
Enable Next only when Online video finishes
Hello!
I have a YouTube video embedded on a slide using the embed code (not showing video controls). I would like the learner to finish watching the video first before they can progress. Is this possible with online videos?
Thanks!
Hi kristinaArg,
Thanks for reaching out!
My teammate, Joe, replied to this question in another thread. I've linked that discussion here if you'd like to read through it, as well as included the solution here:
Dmbedded videos are hosted on a third-party site, so there isn't a way for Storyline 360 to detect if one of their videos has finished playing. The closest workaround would be to match the length of the timeline with the duration of the video and restrict the seekbar so that your learners will be required to view the video in its entirety. You can then add triggers to make the next button available at the end of the timeline.
Another solution would be to download a copy of the embedded video if you are able, and add it from a file. This will give you complete control over how the video interacts with the rest of the slide.
I hope this helps!
- NedimCommunity Member
Kelly's solution seems to work. Simple and elegant.
Alternatively, you could embed the YouTube video in an index.html file and add it as a Web Object in Storyline. This would give you access to YouTube's 'end of video' event, which could trigger a change in a custom variable (e.g., videoComplete) in Storyline from false to true when connected to Storyline's player. Based on this updated value, you can then enable the 'Next' button on the slide.