Switch video source without reload.
pnpm add non-switch-video
const nsv = new NSV()
nsv.append('video.mp4')
export interface NSV {
// complete event
onComplete?: () => void
// video element, document.querySelector('video') as default
el?: HTMLVideoElement
// video codec, 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"' as default
mimeCodec?: string
}
// more options is comming
MIT
https://github.com/hsiaosiyuan0/fmp4-demo