/plushcap/analysis/mux/mux-save-video-playback-progress

Saving video playback progress in your application

What's this blog post about?

This article discusses implementing a custom web component to create a media resume overlay for HTML5 video players. The purpose is to provide users with the ability to pick up where they left off when returning to a video after leaving the page. The approach involves creating a basic HTML template, defining a new class that extends from window.HTMLElement implementation, and using connectedCallback to handle various actions such as setting, getting, and removing last known playback time in local storage. This method enhances user experience by allowing them to resume video playback seamlessly.

Company
Mux

Date published
May 18, 2022

Author(s)
Dave Kiss

Word count
923

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.