Returns the dimensions of given video
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
README.md
index.js
package.json
test.js

README.md

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