Problem: I am implementing “10 Sec Forward” and “10 Sec Back” buttons within my slides. I could get java script from one of the old support links and tried to reuse the same for forward but its not working.
var time = prez.slideTime() + 10000; if (time > slideDuration())
** time = slideDuration();** prez.slideTime(time);
There’s no slideDuration function.
In fact, you don’t need to limit the time within 0 and slide duration, prez.slideTime(time) will do that automatically.
var time = prez.slideTime() + 10000;
prez.slideTime(time);
I couldn’t find any function for ‘slide duration’ and since there are two other ‘time’ and ‘slideTime’, so thought this might work My bad.
Thanks so much. Though its working but facing some issue, maybe because of some turn around code which I am using in project event provided by another team mate here. animated timer start stop on slides
Just realized that using this 10 Sec movement does not change the status of the animated timer. Could you please help with movement of animated timer along with 10 Sec Fwd/back.
Can share the project on support ID for better clarity.
Oh!
So does that mean, we cannot use animated timer element and ‘slideTime(time)’ API together to move user on a specific time of the timeline? Ah, that’s sad.
Wish this can be corrected or modified in the upcoming updates.
Further question to your above support thread, as you mentioned that prez.slideTime(time) takes care of the limit within 0 and slide duration, what would happen if time exceeds slide duration? does that reaches the end of the slide OR do nothing and remain at the same place?
Yes, we’ll try to add more APIs for timer in the future.
It’ll work as if you pass the slide duration to prez.slideTime function.
It reaches the end of the slide, and paused at that time if the slide is not Auto Advance (or there’s an interaction pausing at that time to wait for user inputs), otherwise it jumps to the next slide immediately.