Skip to main content
michellek49
Known Participant
April 5, 2018
Question

Forced navigation

  • April 5, 2018
  • 1 reply
  • 160 views

I am using CP2017. I have a training with three slides. An intro slide, then the slide with the content (an interaction for a youtube video that is four hours long) and then the last slide saying that the course is over (since I'm reporting to the LMS with how many slides they have completed). I have set the Next Button on my second slide to appear after the entire duration of the youtube video using an advanced action. My problem is that since the video is four hours long it is not likely that the user will complete the training in one sitting. If you exit out of the training in the middle of the video and then go back in to the training to continue then the video starts over along with the seconds until the next button appears. Is there a way to get around this and have the video and seconds counting down to the next button pause so that when the user comes back the video and seconds countdown will pick up where it left off?

Thank you for any help.

This topic has been closed for replies.

1 reply

sabre123
Participating Frequently
April 5, 2018

This would best be accomplished using JavaScript/HTML5. This is a very loose interpretation of a process:

  • Determine current time in video, in seconds: I just did a test on a movie playing in Captivate. Got the ID of the <video> element for the video, and wrote this and attached it to a button event:
    • console.log(document.getElementById("theIdOfVidElement").currentTime); //returns the current time of the vid in seconds
  • Store that on exit, preferably on the web server
  • When learner comes back to training, ask them if they want to continue where they left off
  • if yes, get the time from the session var, or whatever means you prefer
  • call a function to concatenate a URL and pass in the saved time
    • Go to the time in the video where they left off as follows: youtubeURL?t=281
      • You would append the "?t=timeOfExitInSeconds" part of that to the youtubeURL
  • Do some math and start your timer

This is obviously predicated on the user gracefully closing your training, and again, just a loose concept.