Skip to main content
Dirlo
Inspiring
April 30, 2020
Answered

Play/Pause a video

  • April 30, 2020
  • 1 reply
  • 4189 views

...

Hello Captivaters !... 🙂

Today I started to play with video...

I recorded a video from Youtube (without advertisement... which is so rare !!!...)

I inserted it in my Captivate library and inserted it in a slide... but would also like to add a simple control "play/pause" button...

I found some help (as usual) in Paul's video :

https://www.youtube.com/watch?v=Hq9XIyw_SFo

But I didn't manage to make the javascript code working as expected (or as explained in the Adobe documentation) !...

So instead of the javascript command, I just put a "Pause" command... And it perfectly did the trick !...

So I'm wondering what I am missing ???... It seemed to be so simple !!!...

Take care and stay safe... And happy captivating !...

😉

...

    This topic has been closed for replies.
    Correct answer Lilybiri

    Whether you have the video inserted as event video or slide video is your choice. It doesn't matter where you got the video. If you want to convert to an interactive video similar to my example it needs to be a slide video. If you want the video in a multistate object and/or in a Fluid Box it needs to be an event video.

     

    I explained the main differences. Event videos behave totally independent. That means that you cannot pause the video with the Pause button on the Captivate playbar or with a Pause command. You can only pause it with the dedicated control panel which appears when you hover over the bottom of the video. You can put a very long event video on a slide of 3 seconds which is pausing, video will play completely.  Event video is, similar to animations, an 'object' which is not listening to nor obeying Captivate out of the box. To control it (never needed that myself, but I am not a video lover) you need to switch to embedded JS.

    1 reply

    Lilybiri
    Legend
    April 30, 2020

    Simple explanation. You don't talk about the same type of video as in that 'tutorial'. 

    Event video is normally playing totally independent of Captivate.  Reason why it has a dedicated control panel when you insert a video as event video.

    You have inserted the video as slide video. That type of video is synchronzied with Captivate's Timeline and can be controlled by Captivate. The Pause command will pause the video, the Continue command will resume playing. Or if you want to use system variables: cpCmndPause and cpCmndResume may allow for a toggle button.

    Have a look at this Interactive video:

    Custom Play/Pause button

     

     

    Dirlo
    DirloAuthor
    Inspiring
    April 30, 2020

    ...

    Hello Lily !... 🙂

    I was sure you would give me a bright light on this matter so quickly I didn't have to look elsewhere !...

    If I understood correctly, the javascript command is useful if you take the video from the internet, but if you have it in the project, simple commands are ok ?...

    Stay safe !...

    PS : Thanks for the video !... I like it !... Cristal clear now !... (Hope so !...)

    😉

    ...

    Lilybiri
    LilybiriCorrect answer
    Legend
    April 30, 2020

    Whether you have the video inserted as event video or slide video is your choice. It doesn't matter where you got the video. If you want to convert to an interactive video similar to my example it needs to be a slide video. If you want the video in a multistate object and/or in a Fluid Box it needs to be an event video.

     

    I explained the main differences. Event videos behave totally independent. That means that you cannot pause the video with the Pause button on the Captivate playbar or with a Pause command. You can only pause it with the dedicated control panel which appears when you hover over the bottom of the video. You can put a very long event video on a slide of 3 seconds which is pausing, video will play completely.  Event video is, similar to animations, an 'object' which is not listening to nor obeying Captivate out of the box. To control it (never needed that myself, but I am not a video lover) you need to switch to embedded JS.