Forum Discussion

pascal_de's avatar
pascal_de
New to the Community
9 hours ago

Control the Storyline-Project Timeline and embeded Peertube-Clips with JS

Hello,
i am fairly new to articulate storyline 360 and i am still in the learning process. Right now iam really stuck and i would like to ask for your help. I´ll try to keep it short.

We have a Peertube-instance and we would like to implement our course-videos in the storyline-project.

Problems:
If the videos are not included locally we are unable to sync the timeline of the project with the video.
Since we have interactions (quizzes in the videos) we need those to be in sync. E.g. when a user pauses the videos (which we included in the project via WebObjects) the timeline should also pause.

Our Solution:
I included the Peertube-link as an embeded video in an index.html as an iframe. That index.html is what i include in the project as WebObject.
Also in this index-file i wrote a script (JavaScript) which connects to the Peertube-API as well as the Storyline-API.
So far everything is working out well and i can communicate the status of the video to the defined variable PeertubeStatus (playing, paused and ended) in storyline 360 to pause and resume the timeline.
Also if a quiz is finished i can set a variable (Peertube_jump) which is queried from the script every 100ms so i can use the player.seek() function to of the Peertube-API to jump to that specific time.

Now the only thing iam missing is a way to create a trigger or something similiar that jumps to the value of another variable that i created when the user uses (seeks) on the timeline of the player. I can transfer the value to a variable (PeertubeSeek) that i have set-up in storyline 360 but iam unable to define the trigger-event.

Is there any documentation on how to that?
Is there any other way to achieve the desired solution we are working towards with embeded videos from another source than local ?

I tried to attached the project story-file as well as the the index.html but it seems iam not allowed to. I will provide a link by tomorrow

Thanks in advance and
Best regards

Pascal

1 Reply

  • Hello pascal_de! Thank you for reaching out! I see that you've also submitted a support case with our support engineers. Great call! We'll continue the conversation via email!