I am having trouble determining the actual height of a video element. Despite seeing in the developer tools that it is 384px, I am only able to retrieve a height of 342px.
I attempted the following code snippet, but it only gives me the natural height, not the current one:
$("#right-top-box video").bind("loadedmetadata", function () {
var height = this.videoHeight;
});
Is there a way to accurately retrieve the current height of the video?