ResumeModal#
The ResumeModal component allows users to resume video playback from where they left off. It stores the current playback position using either localStorage or cookies, depending on their availability, and presents a modal with two options: "Resume watching" and "Watch from beginning." The modal automatically appears when metadata is loaded and a stored resume time is available, unless the user is manually seeking. If localStorage is unavailable, the component falls back to using cookies to store the resume position.
Initialization#
const player = window.kwikMotion('my-video', { resumeModal: true })