Skip to content

Releases: kalashnikovisme/nano-metadata

Fix docs

26 Oct 21:30
Compare
Choose a tag to compare
  • Fix docs
  • Improve tests

Removing trash

17 Oct 09:46
Compare
Choose a tag to compare
  • Removed console.log
  • Removed eslint from dependencies

Getting video duration

15 Oct 14:40
Compare
Choose a tag to compare

Now you can video duration with nano-metadata package

import { video } from 'nano-metadata'

change(e) {
  const file = e.target.files[0]
  
  video.duration(file).then((duration) => {
    console.log(duration) // will show you video duration in seconds
  })
}