This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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.
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.
(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.
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.
Agreed.
mass-move component to LC1