non-switch-video
v0.0.1
Published
Switch video source without reload.
Downloads
3
Maintainers
Readme
Usage
Install
pnpm add non-switch-video
const nsv = new NSV()
nsv.append('video.mp4')
Options
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
License
MIT
Reference
https://github.com/hsiaosiyuan0/fmp4-demo