0.0.1 • Published 2 years ago

non-switch-video v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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