Skip to main content
VKDhange
Participant
August 10, 2020
Question

How to navigate through timeline

  • August 10, 2020
  • 2 replies
  • 302 views

Dear All, 

I am stuck with the following problem. Please help me.
I am trying to goto a particular time period (e.g. 20 seconds) on timeline when the Next button is clicked and come back to 10 seconds when the Back button is clicked. I am using these codes (Window.cpAPInterface.navigateToTime (20000) and Window.cpAPInterface.navigateToTime (10000) ) in the Javascript window. But it is not at all working. 
Please guide me , where I am going wrong and how to navigate through the timeline using time in seconds or milliseconds.
Vaibhav K Dhange
    This topic has been closed for replies.

    2 replies

    Stagprime2687219
    Legend
    August 10, 2020

    Looks like you have a couple typos in your code.

    Missing one of the  'I's

    Also, the 'W' in window needs to be lowercase.

     

    window.cpAPIInterface.navigateToTime(10000);

     


     As an afterthought:

    If you're using the JavaScript window within Captivate - you can drop the window

    cpAPIInterface.navigateToTime(10000);

     

    Lilybiri
    Legend
    August 10, 2020

    Probably you want a JS expert, which I am not at all. I tend to use JS only when I cannot achieve my goal with CP's functionality.

    My suspicion: you think that time restarts on each slide which is not the case. Have a look at:

    http://blog.lilybiri.com/micro-navigation-introduction

    I use the explained terms in this action (just an example):

    http://blog.lilybiri.com/advanced-to-shared-action-step-by-step-micro-navigation-showcase

    VKDhange
    VKDhangeAuthor
    Participant
    August 11, 2020

    Dear Lilybiri,

    Thank you very much for your reply and links provided. It helped me a lot.

    Kind regards,

    Vaibhav

    Lilybiri
    Legend
    August 11, 2020
    You're welcome!