Skip to content

Get video size, duration and type from url or File

License

Notifications You must be signed in to change notification settings

Mfuns-cn/videoType

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')

About

Get video size, duration and type from url or File

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published