This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
internet detective

Joined: May 26, 2003
Posts: 30050

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

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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: 60738

So you only support browsers that have HTML5 support?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Video Aspect Ratio
Similar Threads
Aspect ratio of Components
Ubuntu 10.0 Maverick Meerkat
How to maintain Aspect Ratio of Image using struts2
Fixed with/heigth ratio for Swing frame ?
Crop an image in Java