Vidyard API Integration with Storyline 2?
Mar 29, 2016
Hello All,
I'm looking for a method of integrating functions of the Vidyard JavaScript API.
My company uses them as the platform to host our online videos.
As such when we add them in they are added as web object embedded videos.
Seeing that Articulate could use JavaScript triggers I was hoping there was a way to integrate their API to have the event go out when the video finishes, so as to get around the issue with Web Objects not being usable for Media Completion triggers.
I've added a basic trigger calling the API to change a value when a video completes.
var video = new Vidyard.player("[Video ID Omitted for Security Purposes]");
var player = GetPlayer();
video.on("playerComplete", function() { player.SetVar("Step01", True ) });
And I've placed a downloaded copy of the API file into the story_content folder, and added a reference to it within the story.html file as suggested by the JavaScript best practices guide.
The Trigger still isn't working, does anyone have any idea if this is feasible, or if there might be another work around for a Media Completion Trigger?
5 Replies
How are you embedding the video? Is it in a Web Object? If so, you'll want to reference parent since the web object loads into a frame.
var player = parent.GetPlayer(); instead of var player=GetPlayer();
And the API dependencies probably don't need to be loaded into the story.html file if it's referenced in the web object.
Check out this link. https://community.articulate.com/discussions/articulate-storyline/detecting-end-of-wistia-video-with-javascript.
Cheers, julie
What do you mean referenced in the web object? I have the web object with the embed code to the video, which is an iframe pointing to the video with a few variables passed. The web object is on the base layer of the slide. And the Trigger is on the same slide.
What do you mean referenced in the web object? I have the web object with the embed code to the video, which is an iframe pointing to the video with a few variables passed. The web object is on the base layer of the slide. And the Trigger is on the same slide.
This discussion is closed. You can start a new discussion or contact Articulate Support.