Forum Discussion

MichelToyos-c2c's avatar
MichelToyos-c2c
Community Member
4 years ago

Get current time in a Timeline

Hi:

I´m looking for a variable that give me the current time in a specific moment on a slide.

Is ti possible?

For example when I click on one button give me the time in the timeline.

Thanks

3 Replies

  • you can check all available built-in variables

    this is a complete list of all build-in variables, 'time' is only for "... .ElapsedTime" available

    what do you want to to with 'time of the timeline' - perhaps there are other solutions

    Jürgen

  • Ok. I explain it better.

    I have an embed video with a free controls  and I want to know in what second (time) of this timeline is the student.

  • this could be done with javascript

    trigger on start timeline (or video ???) -> javascript

    javascript:
     - seach in the dom the video-tag
     - append event handler ' timeupdate' to the video
     - get current time and complete time from the video event
     - write the max of the collected results (percent ??) into a storyline variable

    => then the value is available in storyline via variable

    Jürgen