W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2008

[whatwg] video tag: pixel aspect ratio

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Tue, 2 Dec 2008 11:02:56 +1100
Message-ID: <2c0e02830812011602r618a3462k7c4977428e91d6ad@mail.gmail.com>
On Tue, Dec 2, 2008 at 4:19 AM, Lachlan Hunt <lachlan.hunt at lachy.id.au> wrote:
> Philip J?genstedt wrote:
>>
>> On Mon, 2008-12-01 at 12:39 +0000, Ian Hickson wrote:
>>>
>>
>> <video src="circle.mpg" width="400" height="400"> <!-- circle -->
>> <video src="circle.mpg" width="400" height="300"> <!-- pillarbox -->
>
> This is effectively how YouTube behaves now with their recent change to a
> widescreen player.  It would look terrible if 4:3 videos were stretched to
> fill the 16:9 viewport, instead of just using black bars on the side.  Even
> before when they were still using a 4:3 player, widescreen videos were
> rendered as letterbox.

Not all video players behave like the YouTube one though. Many stretch
with the width/height attributes.

I would support an explicit keepaspectratio attribute, which turns the
width/height from a video width/height to a viewport.
In fact, such an attribute would be awesome for images, too.
It could be a CSS attribute or an explicit video element attribute - I
am not fussed.

Regards,
Silvia.
Received on Monday, 1 December 2008 16:02:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:46 UTC