video-dimensions

Returns the dimensions of given video

npm install video-dimensions
4 downloads in the last month

video-dimensions

Returns the dimensions of given video

videoDimensions = require('video-dimensions')

video = document.querySelector('.video')

videoDimensions(video, function (width, height) {
  width
  // => 500

  height
  // => 300
})

Install

$ npm install video-dimensions
npm loves you