Forum Discussion
Timer Completion for Embedded Video
Hello!
I am trying to make a course where the learner cannot continue until the elapsed time of the video has passed and I can’t figure out how to achieve this.
I have tried making several storyline slides with a simple text stating “You must watch the entirety of this video to receive completion” each with different lengths of time according to the video, however, the issue is when the user scrolls past the storyline slide, it pauses the animation and they are unable to complete the block regardless of how much time has passed. I have tried lowering the padding as much as possible, but it is still too far away from the video, not to mention the process itself is a bit tedious.
I have even tried using a javascript timer and attaching it to the storyline slide but am unable to get that to work as I am not very familiar with coding. Does anyone have any solutions or suggestions that might help? It would be greatly appreciated.
I should also mention, these are embedded videos.
Thanks so much!
Hi Marcel,
Thanks for reaching out!
Tracking elapsed time on an embedded video is challenging because the video itself is hosted on a third-party platform, and there is no direct way for Storyline 360 to know how much of the video a learner has seen.
You can instead base the navigation on how much time a learner has already spent on the slide using the built-in Elapsed Time Variables. You can read about them here:
For example, if the required video is 1 minute long, try disabling the navigation of the slide until the 'Slide.ElapsedTime' has reached 60,000 milliseconds (Elapsed time variables report time in milliseconds).
I'll also open up the floor to members of the community in case someone has experience with a better solution!
- MarcelMaitland-Community Member
Hi thank you for the response! That helped a lot. Do you know if there is a way to keep a storyline slide playing even when a user scrolls past it? This method works, unless the user scrolls past the slide to the video and the storyline slide isn't in view. I am worried this could make some users stuck.
- JohnMorgan-c50cFormer Staff
Hi Marcel,
Thanks for the follow-up question! I have a follow-up for you as well. Are you looking to keep the Elapsed Time variable running on a slide that isn't being viewed anymore? If so, you can create a scene that contains only the content they scroll past and the video. Then use 'Scene.ElapsedTime' variable to record the time they spent on the entire scene.
I hope this helps out!