I'm trying to have a list of videos and pictures, each resized to the same size for easier view.
when the user clicks on one of them, they should be resized to their original size (or that of the bounding box at max)
My problem is: how do i get the ORIGINAL dimensions of a video?
var img = new Image();
img.width //this is the width
img.height //this is the height
var video = $(event.target);
var width = video.videoWidth;
var video = $("#myvideo" ); //JQuery selector video.videoWidth; //get the original width video.videoHeight; //get the original height
To get know too :
video.width; //get or set width for the element in DOM video.height; //get or set height for the element in DOM