webm-duration
v0.1.0
Published
Get duration (in seconds) of .webm file.
Downloads
2
Readme
webm-duration
Get duration (in seconds) of .webm file.
Install
npm install webm-duration
or
yarn add webm-duration
Usage
import webmDuration from 'webm-duration';
const fixture = fs.readFileSync('sample.webm');
webmDuration(fixture);
//=> 13.35
API
webmDuration(input, options?)
input
Type: ArrayBuffer | ArrayBufferView | Array
File data.
Fin.