slidev
slidev copied to clipboard
feat: add pause-by-duration control for SlidevVideo
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
Deploy Preview for slidev failed.
| Name | Link |
|---|---|
| Latest commit | e26ddc63aadad0bdf736781b328a427b4fb248cc |
| Latest deploy log | https://app.netlify.com/projects/slidev/deploys/68a2d119afc2bc0008a3718b |
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!
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!