This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11136 - Poster attribute in audio element
Summary: Poster attribute in audio element
Status: VERIFIED INVALID
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-23 11:04 UTC by Josh Tumath
Modified: 2011-08-04 05:11 UTC (History)
6 users (show)

See Also:


Attachments

Description Josh Tumath 2010-10-23 11:04:10 UTC
The problem with audio elements, when being shown as interactive content, is that only displays the controls, whose dimensions are set by the UA.

I think it would be very useful if we could set a poster for an audio element (which would only be visible if the controls attribute is present). I'm aware that an img element could be used for this purpose, but it would be very difficult, since I don't know the width of the audio controls.

Another benefit of this is that subtitles could be displayed in the poster.
Comment 1 Aryeh Gregor 2010-10-24 00:40:50 UTC
1) Why is it a problem that the audio elements only display the controls?  You don't seem to say, unless "whose dimensions are set by the UA" is relevant (I can't figure out).

2) You can set the width of audio controls by CSS.  If some browser doesn't support it, file a bug against that browser.

3) Subtitles should be displayed in WebSRT, which is a work in progress.


So I don't see any actual use-cases here.  Why would you want this?  Can you give an example of an actual webpage that displays audio with a poster?  There's a poster attribute for video because existing pre-HTML5 web video players normally include a poster, so it's a very common need.  If there's no similarly common need for audio, it doesn't need its own special markup, authors can make it up on their own.
Comment 2 Josh Tumath 2010-10-24 07:51:28 UTC
(In reply to comment #1)
> 1) Why is it a problem that the audio elements only display the controls?  You
> don't seem to say, unless "whose dimensions are set by the UA" is relevant (I
> can't figure out)

(In reply to comment #1)
> 2) You can set the width of audio controls by CSS.  If some browser doesn't
> support it, file a bug against that browser.
Ah, I see.

(In reply to comment #1)
> 3) Subtitles should be displayed in WebSRT, which is a work in progress.
Sorry. I didn't explain that very well. I didn't mean that the subtitles would be part of the actual image; I meant that they would be shown by the UA to the user 
above the poster.

(In reply to comment #1)
> So I don't see any actual use-cases here.  Why would you want this?  Can you
> give an example of an actual webpage that displays audio with a poster?
The BBC frequently use it on their website. An example can be seen here:

http://www.bbc.co.uk/doctorwho/s4/episodes/

Images are shown above audio players on this website.

However, you have convinced me that that there is little need for this.
Comment 3 Aryeh Gregor 2010-10-24 19:42:54 UTC
I don't see the audio players on that website.  However, if the poster remains static, you could just use an <img>.  As noted, you should be able to set widths using CSS.  This doesn't work so easily for <video poster> because there you want to overlay the poster on the video, and also want it to disappear when the video starts playing, etc., so it would require nontrivial effort to get it working right.

If you no longer agree with this bug, you can close it RESOLVED INVALID to save the editor the need to review it.
Comment 4 Josh Tumath 2010-10-25 09:16:50 UTC
Agreed.
Comment 5 Michael[tm] Smith 2011-08-04 05:11:52 UTC
mass-move component to LC1