Trying to embed youtube video in storyline2, have trigger set to advance slide when media completes, but it won't, checked on the storyline and it shows automatic and correct trigger as well. I tried when "timeline ends" but if the user pauses the video for any reason, the timeline expires and advances the slide without completing the video. Any ideas? Thanks---Jeff
Thanks for sharing the file. The trigger did not have any media associated with it. I added the youtube as the object in the trigger, and it is now working.
YouTube recently changed their API structure causing difficulty with using the embed code, so we'd recommend inserting as a web object as that'll allow you to continue to use the videos even if YouTube changed something again once the course is published. You can read more about that here.
Also, if you're using a web object, you won't be able to control it with triggers as Storyline can't read from the web object's timing or other elements.
So what your saying is as a web object, when the video is finished it won't automatically advance to the next slide, right? Is there a work around? Right now I'm embedding the video, but it's a big project and YouTube streams videos better than then embedded videos.
Correct. If you need to advance the slide automatically, you could look at setting the overall timeline of the slide to match the length of your video and advance based on that timeline - but there isn't a guarantee that the user won't pause the web object and therefore miss elements based on automatically advancing.
If you're inserting it as a web object, there won't be an option to add a trigger to interact with it before or after. You could set your timeline to that length, and trigger something based on that. But again, if the user has paused or stopped the video the trigger will still execute.
The YouTube will be a web object, which means it's not on the same timeline as your slide since it's an outside object. In addition, your timeline will not be 'progressing' while you are not active in that window, so even a trigger tied to the timeline may not work well as Ashley explained above. In short, you may be right.
I'm curious how others may have met such a requirement and look forward to seeing the replies from the community.
I would also love to see how people have dealt with trying to make embedded youtube videos "mandatory." I want people to watch the video before the next button appears! But how??
Hello Anne-Marie and welcome to E-Learning Heroes :)
As I shared above, your YouTube videos will be web objects, which means they are not on the same timeline as your slide, which makes any triggers about 'finishing' a slide difficult.
If you could embed the video within the course, then you could set the Next button to appear when the media completed.
For use with web objects, you could estimate the time needed to complete the video, but otherwise, I'm curious how others in the community have handled such a requirement.
18 Replies
Hi Jeffrey,
Do you have a file you could share for us to take a look?
not sure which file in the storyline folder you would need...help? I have a zipped published LMS file if that will work
Jeffrey,
It would be the source file, the .story file from Storyline, before you publish.
See attached, thanks for your help---Jeff
Hello Jeffrey,
Thanks for sharing the file. The trigger did not have any media associated with it. I added the youtube as the object in the trigger, and it is now working.
duh...love the simple mistakes...thanks for the answer---Jeff
Glad to help Jeff!
How did you get the YouTube Object to show up? My only choices are VIdeo from file and Webcam.
Also, when inserting video is it better to use When Media Completes or When Timeline Ends?
Thanks...Suzy
Hi Suzy,
YouTube recently changed their API structure causing difficulty with using the embed code, so we'd recommend inserting as a web object as that'll allow you to continue to use the videos even if YouTube changed something again once the course is published. You can read more about that here.
Also, if you're using a web object, you won't be able to control it with triggers as Storyline can't read from the web object's timing or other elements.
So what your saying is as a web object, when the video is finished it won't automatically advance to the next slide, right? Is there a work around? Right now I'm embedding the video, but it's a big project and YouTube streams videos better than then embedded videos.
To see what the project looks like with the embedded video you can go to my test site http://hiv.lightindustries.com
Hi Suzy,
Correct. If you need to advance the slide automatically, you could look at setting the overall timeline of the slide to match the length of your video and advance based on that timeline - but there isn't a guarantee that the user won't pause the web object and therefore miss elements based on automatically advancing.
If I'm reading this thread correctly, there is nothing I can do if I'm trying to trigger ANYTHING after this 1:15:57 (4557 secs) long youtube video?
Hi Michael,
If you're inserting it as a web object, there won't be an option to add a trigger to interact with it before or after. You could set your timeline to that length, and trigger something based on that. But again, if the user has paused or stopped the video the trigger will still execute.
Hi Michael,
The YouTube will be a web object, which means it's not on the same timeline as your slide since it's an outside object. In addition, your timeline will not be 'progressing' while you are not active in that window, so even a trigger tied to the timeline may not work well as Ashley explained above. In short, you may be right.
I'm curious how others may have met such a requirement and look forward to seeing the replies from the community.
Leslie-
I would also love to see how people have dealt with trying to make embedded youtube videos "mandatory." I want people to watch the video before the next button appears! But how??
-Logan
Ashley or Leslie
We want to make these YouTube videos mandatory. I want people to watch the video before the next button appears! But how??
Hello Anne-Marie and welcome to E-Learning Heroes :)
As I shared above, your YouTube videos will be web objects, which means they are not on the same timeline as your slide, which makes any triggers about 'finishing' a slide difficult.
If you could embed the video within the course, then you could set the Next button to appear when the media completed.
For use with web objects, you could estimate the time needed to complete the video, but otherwise, I'm curious how others in the community have handled such a requirement.
Thank you!
This discussion is closed. You can start a new discussion or contact Articulate Support.