I am trying to get width and height of tag, I am using the following markup:
This code will give you the dimensions of the video tag (not the dimensions of the video itself)
var video = document.getElementById("video");
var videotag_width = video.offsetWidth;
var videotag_height = video.offsetHeight;
This code will give you the dimensions of the video that is currently playing
var video = document.getElementById("video");
var video_height = video.videoHeight;
var video_width = video.videoWidth;