I have a simple html5 video tag:
Just found out that we can get the video width and height as:
$("#video").innerHeight();
$("#video").innerWidth();
These two functions are exposed by jQuery.
Another reason why jQuery rocks!!!
$(function () {
$("#video").bind("loadedmetadata", function () {
var width = this.videoWidth;
var height = this.videoHeight;
// ...
});
});