• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Rewind Video 10 seconds

Participant ,
Dec 28, 2015 Dec 28, 2015

Copy link to clipboard

Copied

Hello,

I have a slide that contains a video that is several minutes long. In case the viewer misses some information, I'd like to have a "Rewind" button that jumps back X frames and continues playing the video. I am not looking to have the slide jump back to the very beginning of the slide, but rather jump back a certain number of frames or seconds from whenever the button is pressed.

I have created a variable called "v_rewind" set to a value of "cpInfoCurrentFrame-10". On click of the Rewind button, I assigned "cpCmndGoToFrameAndResume" with "v_rewind".

When I run the project, the button does not work as intended. Instead it jumps back to the first slide of the project. Does anyone know how to fix my script?

rewindBtn.jpg

Views

1.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 28, 2015 Dec 28, 2015

That value is a text, it will never 'calculate' anything. And since any text is considered the same as the number '0', you will always rewind to the first frames, which has number 0.

I hope it is multisynchronized video?  Because this will not work with event video. Create an advanced action to be triggered by your button:

BtRewind.png

I used 60 frames, which is 2 seconds. Your amount of 10 frames is only 1/3sec? If you want 10 seconds, you'll need to replace 60 by 300.

Votes

Translate

Translate
Community Expert ,
Dec 28, 2015 Dec 28, 2015

Copy link to clipboard

Copied

That value is a text, it will never 'calculate' anything. And since any text is considered the same as the number '0', you will always rewind to the first frames, which has number 0.

I hope it is multisynchronized video?  Because this will not work with event video. Create an advanced action to be triggered by your button:

BtRewind.png

I used 60 frames, which is 2 seconds. Your amount of 10 frames is only 1/3sec? If you want 10 seconds, you'll need to replace 60 by 300.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 28, 2015 Dec 28, 2015

Copy link to clipboard

Copied

Perfect! Thank you so much!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 01, 2024 Aug 01, 2024

Copy link to clipboard

Copied

LATEST

Genial esta respuesta gracias.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources