Forum Discussion
Trigger not showing after Youtube Video
Hi Team,
Long time follower, first time poster.
So I have started pulling out my limited hair over a trigger not appearing. I have embedded a Youtube video into my storyline and set a trigger to change from hidden to visible once the video completes.
However, this does not happen. I have tried playing with the code and adding an end time (see below) but still nothing.
Ultimately I changed the button trigger to appear after a certain time, but am not happy with this.
Any suggestions at all?
<iframe width="560" height="315" src="https://www.youtube.com/embed/aHm3ZKzVP7w?start=000&end=120
" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>
7 Replies
- KatharineDwyerCommunity Member
Hi Matt! I came here to find a solution to a similar problem. Did you ever figure this one out? Ideally I would like my YouTube video to autoplay, but it will not (I have tried as embed and as a web object). In both cases it is as though the media is completely disconnected from the timeline and it will not respond to any of the various triggers that I have tried. The only way the video will play is if the user clicks the play icon on the YouTube screen itself- but SL is not recognizing this action so I can't base a trigger off of it. Let me know if you found a work around. Thanks!! Katie
- SarahHodgeFormer Staff
Hey Katharine! Although we don't provide support for javascript coding, we do have this article that shares how to add YouTube videos to Storyline 360. There's even a snippet on autoplay parameters. I hope that helps!
- KatharineDwyerCommunity Member
Thank you, Sarah! I will check it out!
- SinchuRaj-Community Member
Hi Matt/Katharine,
This can be achieved by integrating the YouTube API and call a javacriopt function to trigger if the video is completed or not. you can also perform Storyline action once the video is completed.
- KatharineDwyerCommunity Member
Raj S- Not yet but I will read the article Sarah provided. If you have any other helpful tips I would love them. I have not tried my hand at javascript yet.
- ravikhadeCommunity Member
HI Raj,
Do you have any sample for this. If yes then please share... thanks a lot in advnace
- MattMerciecaCommunity Member
Thanks for the support team - Raj that sounds like a winner I will give it a shot. Great stuff
Related Content
- 7 months ago
- 10 months ago
- 11 months ago