Update: if you use a recent version of Captivate, have a look at this updated post:
Intro
This is not the same as the real time spent by the user viewing slides, project. This time can be made visible as well.
Example
- in the first Text Caption top left, the total project duration like it is displayed in a TOC or in the Project Info
- in the second Text Caption top right, the elapsed duration calculated as the sum of the slide durations before the current slide, with a percentage as well (how much of the movie has been viewed)
- in the third Text Caption beneath the second one the real time already spent on the movie
Work flow
Variables
- rdinfoFPS : the framerate of the Captivate file (default is 30fps)
- rdinfoCurrentFrame : the number of the frame where the playhead sits
- rdinfoFrameCount : total number of frames in the project
- cpInfoElapsedTimeMS : time elapsed since the published movie started, in milliseconds
- v_total : will store the total duration (in seconds) of the project
- v_total_min : will store the total duration of the project in minutes, I could have reused the user variable v_total, but the advanced actions will be easier to read
- v_help : to store the frame number of the first frame of a slide (or when clicking the last 'Calc' button); this variable is reused a lot of times, contrary to the first 2
- v_elap : the elapsed time (in seconds) calculated from the slide durations of the previous slides
- v_elap_min : same elapsed time but in minutes; again I could have reused v_elap as well
- v_perc : percentage of movie that has been viewed, calculated from v_elap and v_total
- v_real : real time (in seconds) since the start of the movie; to illustrate what I mean by reusing, I used this variable if necessary also for the real time in minutes
Hide-and-Seek
-
The first Text Caption, showing the total Project duration is really only on the first slide with a timing 'Display for rest of Project'; there are really 2 text captions:
- NoMinutes: displays the information when the total duration is lesser than 60 secs, this caption is on top of the second Text Caption in the Timeline, thus hiding this caption that has exactly the same position and sidze (Transform accordion in Properties panel)
- YesMinutes: displays the same information in minutes when appropriate, and will become visible by hiding the text caption NoMinutes
-
The text caption showing the Elapsed time and the Percentage is only on the second slide (see timeline of this slide in the Gallery), also with the timing 'Display for rest of Project'; again I have 2 versions of this caption
- ElapMinNo : displays the information when the elapsed duration is lesser than 60 secs, this caption is on top of the second Text Caption in the Timeline, thus hiding this caption that has exactly the same position and sidze (Transform accordion in Properties panel)
- ElapMinYes : displays the same information in minutes when appropriate, and will become visible by hiding the text caption ElapMinNo
-
The text caption showing the real time is also only on the second slide (see Timeline), with timing 'Display for rest of Project'; the 2 versions of this caption with same size and position are:
- RealMinNo : for this information in seconds, sits on top of and hides
- RealMinYes : for the information in minutes, will be visible when RealMinNo is hidden
Advanced actions
- TotalCalc: which is really a standard action, where the total duration of the project is calculated
- Minutes: checks the value of v_total, if it is greater than 60, the duration in minutes is calculated and stored in v_total_min and the Text Caption NoMinutes is hidden, thus revealing YesMinutes
- Elapsed: again a mimicked standard action that calculates the elapsed duration from the variables v_help and rdinfoFPS, the percentage from v_elap and v_total, the real time from cpInfoElapsedTimeMS
- ElapMin: checks the value of v_elap, if it is greater than 60, the duration in minutes is calculated and stored in v_elap_min and the Text Caption ElapMinNo is hidden, thus revealing ElapMinYes
- RealMin: checks the value of v_real, if it is greater than 60, this variable is recalculated in minutes, and the Text Caption RealMinNo is hidden, revealing RealMinYes
Conclusion