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.
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 don't have the project in front of me. What type of variable is videoEnd? Maybe True and False are working a little strangely, can you try changing it to a text variable? Tomorrow, I'll work on the project I uploaded to see if it forwards to the next slide.
I tested the attached project in Firefox and IE and it advanced to the next slide at the end of the video. Give it a try on your end and let me know what you see.
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:
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.
In case Michael is no longer subscribed to this conversation, you can use the Contact Me button on their profile page to reach out and reference the file.
We're here to help, too! Could you share more details about what you'd like to accomplish?
63 Replies
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...
I don't have the project in front of me. What type of variable is videoEnd? Maybe True and False are working a little strangely, can you try changing it to a text variable? Tomorrow, I'll work on the project I uploaded to see if it forwards to the next slide.
I tried both types: true/false and text variable. Nothing worked unfortunately.
I tested the attached project in Firefox and IE and it advanced to the next slide at the end of the video. Give it a try on your end and let me know what you see.
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?
Joanna, can you attach the project file you used to create the demo? Which version of Storyline are you using to publish? Thanks.
Here's Storyline file attached - I'm on SL360.
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.
That's it! Thanks so much Michael for your help and expertise! I really appreciate your time spent on this.
Good to hear that fixed it. Let me know if you need anything else.
Hi Michael,
I went through your suggestions but this isn't working for SL3. Can you please help me?
I downloaded your working file also after publishing it in SL3, even that doesn't work.
Hi Pranowati!
In case Michael is no longer subscribed to this conversation, you can use the Contact Me button on their profile page to reach out and reference the file.
We're here to help, too! Could you share more details about what you'd like to accomplish?
Are you publishing it to an LMS or web site and viewing it from there?
This post was removed by the author
This post was removed by the author
Hello Michael.
I need your help so I can make it work with a video directly from Vimeo:
https://vimeo.com/344408477
How can I do it?
Thank you,
Gonzalo