Trigger Next Button to show when video (web object) ends

May 02, 2017

I have a video on a slide as a web object (due to the size of the video file and the url of the file I can't get it to work as insert video (embed code not valid)).

I have a trigger which hides the next button at the start of the timeline.

I want the user to watch the video before the next button shows.  Is there a way to do this with a web object that is a video?  Note: the video does not autoplay.  The user must click the play button.

I'm using Storyline360

Cheers,

 

Kimberley

63 Replies
Joanna Kurpiewska

Hi Michael,

thanks again for your help and sorry for the delay. I had a chance to test your code today. It works fine, the variable changes once the video finishes (tested as upload to website) but for some strange reason it doesn't trigger the action to jump to next slide in Storyline.

I can't figure out what the issue is...

Joanna Kurpiewska

Thanks so much for help, Michael. I've used your SL file and just replaced web object with my own assets. Jumping to the next slide works well...but only in the flash version. For HTML5 variable changes at the end of video but slide doesn't advance. Here are links to compare:

http://demo.wolflearningconsulting.com/testFile/story_flash.html

http://demo.wolflearningconsulting.com/testFile/story_html5.html

Do you think there's any solution for that?

Michael Anderson

Joanna, there was a variable type mismatch between the javascript code and the Storyline project. In the js code I was treating the videoEnd variable as a text variable by placing the "true" value in quotes. I deleted the variable in Storyline and re-created it as a text variable, then re-created the trigger and now it works. If the code was the same in the Storyline2 project, then there may be a difference with how the variables are treated with SL360. See attached project file.