Remember settings

plugin

Volume, speed and position survive a reload with the persist plugin.

Change the volume, speed or captions, play for a bit, then reload. The player comes back the way you left it.

localStorage
{}
Big Buck Bunny © Blender Foundation, CC BY 3.0, via Wikimedia Commons. HLS test stream by Mux, DASH by Akamai.

The code

tsx
import { persist } from '@tomato-player/plugin-persist';
​
createPlayer('#player', {
src: 'movie.mp4',
skin: minimal(),
plugins: [persist({ resume: true })], // volume, speed, captions and position