It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes Video Aspect Ratio Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Video Aspect Ratio" Watch "Video Aspect Ratio" New topic

Video Aspect Ratio

Anubh Jain
Ranch Hand

Joined: Apr 09, 2012
Posts: 34
Hi all,
Is it possible to determine the aspect ratio of a video using jquery/javascript?

Please provide some pointers.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33106

What technology is the video using? If Flash, Media Player, etc - then probably not. If HTML 5, probably.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Anubh Jain
Ranch Hand

Joined: Apr 09, 2012
Posts: 34
Yes I am using HTML.

how do we do it?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

So you only support browsers that have HTML5 support?

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Video Aspect Ratio
jQuery in Action, 3rd edition