slidev icon indicating copy to clipboard operation
slidev copied to clipboard

feat: add pause-by-duration control for SlidevVideo

Open Jeffrey0117 opened this issue 3 months ago • 3 comments

This PR adds support for pause=[1,2,3,'end'] format in SlidevVideo component.

The video now plays segment-by-segment with user click between segments. Supports fractional seconds like [3.5, 2.5, 3] Ends with autoplay or manually controlled 'end' keyword.

Fixes #2177 - Clickable Video

Jeffrey0117 avatar Aug 02 '25 09:08 Jeffrey0117

Deploy Preview for slidev failed.

Name Link
Latest commit e26ddc63aadad0bdf736781b328a427b4fb248cc
Latest deploy log https://app.netlify.com/projects/slidev/deploys/68a2d119afc2bc0008a3718b

netlify[bot] avatar Aug 02 '25 09:08 netlify[bot]

Hi, I've added support for segmented video playback with the pause=[1,2,3,'end'] format. This addresses #2177 and allows better interactivity with videos in slides. Tested with fractional durations and multiple use cases. Let me know if anything needs adjustment!

Jeffrey0117 avatar Aug 02 '25 09:08 Jeffrey0117

Hi, I’ve updated the PR — reverted the README changes and added a new English docs page for the video playback demo.
Please let me know if there’s anything else I should adjust. Thanks a lot for your guidance!

Jeffrey0117 avatar Aug 18 '25 07:08 Jeffrey0117