Forum Discussion
Trigger on Vimeo/online video completion.
Make sure that you are viewing it from an online source.
Ah, the missing piece of the puzzle. Thanks for the reply.
I'm attempting, in my old age, to learn some relevant JavaScript that can be used in SL, so please excuse me for asking something that is probably very basic. I have figured out how to get the "Videotime2" variable to populate as a percentage ( SLplayer.SetVar("Videotime2", data.percent); ) but I have been unable to figure out how to multiply that output by 100 so that it reads 0 - 100 and not .0 - 1.
We don't want the person taking the course to be able to scrub through the video until it has played once. I was thinking that I would have to create a 2nd slide with a web object pointing to a second version of the video where the scrub bar is available and having the course move to that second slide after the first plays through. I did not see any indication, in the Vimeo SDK documentation, that you could turn the scrub bar on/off with JavaScript.
We want to pull from Vimeo as video content is starting to occupy too much of our available space on our LMS.
Again, thank you for your assistance and insight.
- RussellKillips-1 year agoCommunity Member
For the percent range use:
SLplayer.SetVar("Videotime2", data.percent*100);
- BsraBasar1 year agoCommunity Member
Hello Russell,
your SL has saved us. Thank you so much!!Would it be possible to adjust that SL Project and change the end time of the video to 80%. What I mean is the video status should change to 'ended' when user has viewed 80% of the video and not the entire video.
Unfortunately, we couldn't figure that out.Thank you in advance!
- RussellKillips-1 year agoCommunity Member
Hello Büsra,
I created another storyline variable called VideoPercent.
There is a trigger that changes the videoStatus variable to Ended when the VideoPercent changes and is greater than or equal to 80.
Related Content
- 10 months ago
- 3 months ago