slidev icon indicating copy to clipboard operation
slidev copied to clipboard

Clickable Videos

Open IllustratedMan-code opened this issue 9 months ago • 0 comments

Is your feature request related to a problem? Please describe. I use a lot of videos in my presentations (biology animations) and I often find that the audience wants me to pause at certain points in the video for additional explanation.

Describe the solution you'd like

I would like a component similar to SlidevVideo (SlidevVideo could just incorporate these features) that allows one to set various timestamps in the video associated with clicks.

For example, click 1 could play the first 5 seconds, then click 2 could play the next 10 seconds, then click 3 plays till the end of the video. The syntax could look something like this:

<SlidevVideo 
    :click-1=5
    :click-2=15 <!-- or deltatime -->
    :click-3=end
>
<source src=myvideo.webm />
</SlidevVideo>

Describe alternatives you've considered

I suppose I could just render out all the different transitions that I want and make a slide for each of them, but that is definitely clunky and makes it so I need to have the transitions pre-meditated to a larger degree. Additionally, my current work around is to just pause the video manually with a click, though that means I can't have transitions predefined before the presentation.

IllustratedMan-code avatar May 20 '25 17:05 IllustratedMan-code