Forum Discussion
Trigger on Vimeo/online video completion.
Hi,
I am facing an issue on triggers while i am trying have a next button hidden of player and the custom button should appear/change its state post online video completion. But i think i may be making a mistake somewhere please let me know if there is a solution for this.
I am looking forward for the learners to complete the video hosted on vimeo and i am placing it as an embedded video applying below triggers :-
1. Hide Next button when timeline starts.(Works)
2. Hide Prev Button when timeline starts.(Works)
3. Change the state of Next Icon to normal when online video completes.(Not Working)
Please help!
Thanks :)
Hi Rahul,
Sorry to hear that you ran into this issue. We are currently tracking a known bug which prevents the 'when online video completes' condition to not work properly in triggers. I've added this forum post to the bug report so we can notify you as soon as a fix is released.
- RahulM-d7d1d657Community Member
Thanks Joe! Wish the team very best to find the fix soon.
- RahulM-d7d1d657Community Member
Hi Joe, Any luck on this fix?
- JohnMorgan-c50cFormer Staff
Hi Rahul,
Thanks for checking in on this!
The issue described in your post is the expected behavior regarding videos on websites. Here is an article about this. This has been submitted as a feature request though. If there's any news to report on this, this conversation will be updated.
- RahulM-d7d1d657Community Member
Thanks John
- FredGoodCommunity Member
This issue is killing me today. I simply cannot get the trigger "Set state of __X___ to Normal when Online Video 1 completes" to work, at all. How else can I do this? (Videos are hosted in Vimeo, could that be the problem?) I need to ensure users cannot see/use the custom Next button until the video is done.
- RussellKillips-Community Member
Hello Fred,
Vimeo has a javascript api.
Using this api, code can be written that can update storyline variables. When the storyline variable is updated to 'Ended', you can have a trigger change your custom next button from hidden to normal.
Here is a link to a published storyline project:
http://www.knowledgeconstruction.com/vimeo/story.html
I have also attached the storyline project and a webobject.
The webobject has an index.html within it. It has the code to show a vimeo video and the code that updates the storyline variables. You can easily edit this code by opening the file in notepad.
- JoeFrascella-85Community Member
Russell,
When I run your SL file neither the video status or the video time fields update. They remain blank. I have made sure that the web object is pointed to the folder with the index.html file and I am publishing to the web. The video will load and I can play it, just nothing populates either of the two fields.
Any thoughts on this?
- RussellKillips-Community Member
Hi Joe,
I don't know why it's not working for you.
I just published it to Review 360 and its working there.
https://360.articulate.com/review/content/83654b05-8016-4164-8b5e-af351cbec01c/review
- RahulM-d7d1d657Community Member
Hey Russell,
You have saved me and many others like me.
Thank You.
I will update you once I am getting success which I am sure i will. - FredGoodCommunity Member
Russell, this looks amazing! I understand about 80% of it... So, I can edit the html file, no problem, I see where the embed code goes in there, but where does the web object live? When I publish, does it get "packaged" with my course even though I linked to it on a local drive? I'm just not clear on how the code is linked to in the published course file.... I feel as though I'm almost there! :D
- RussellKillips-Community Member
Hi Fred,
When you edit the html file, you will need to reinsert the webobject on your storyline slide.
- FredGoodCommunity Member
Thank You!! I got it to work. I didn't really understand how Web Objects work until now. Cool! I'm just learning javascript, so this will be a good example for me to deconstruct and learn from. THANK YOU SO MUCH!
- CraigStevens210Community Member
Hi All. I dont suppose you would have a way to do the same with Wistia videos would you Russell?
Many thanks
Hi Craig!
I just wanted to pop in and share that since this discussion is a bit older, Russell may no longer be subscribed. If you want to reach out to him directly with questions, you can do so by clicking on his name and selecting 'Contact Me.'
- RussellKillips-Community Member
Sorry, I don't have any videos hosted on Wistia. So I haven't looked at their API.
- RussellKillips-Community Member
Hello Craig,
I decided to take a look at their API.
Here's a link to the published storyline project:
http://www.knowledgeconstruction.com/wistia/story.html
And attached is the webobject and storyline file.
- CraigStevens210Community Member
Amazing Russell!
Apologies for the late reply but this is much appreciated