videotype
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

VideoType

Get video size, duration and type from url or File

need fetch api support

Usage

import { getVideoType, getVideoDuration, getVideoSize } from 'videotype'

const type = await getVideoType('https://media.w3.org/2010/05/sintel/trailer.mp4')
const duraction = await getVideoDuration('https://media.w3.org/2010/05/sintel/trailer.mp4')
const size = await getVideoSize('https://media.w3.org/2010/05/sintel/trailer.mp4')

Package Sidebar

Install

npm i videotype

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

9.56 kB

Total Files

5

Last publish

Collaborators

  • amoyensis