[webkit-dev] <audio>/<source> and the type attribute

Eric Carlson eric.carlson at mac.com
Wed Apr 1 09:23:08 PDT 2009


John-Paul -

On Apr 1, 2009, at 2:37 AM, Harold, John-Paul wrote:

>> On Tue, 31 Mar 2009, Harold, John-Paul wrote:
>>>
>>> in my HTML5 audio markup, I have the following
>>>
>>> <audio>
>>>  <source src="/media/audio/ogg/9001_10000/9807.ogg"
>> type="audio/ogg;
>>> codecs=vorbis"/>
>>>  <source src="/media/audio/m4a/9001_10000/9807.m4a"/>
>>> </audio>
>>>
>>> but I'm unsure what the equivalent type attribute for an m4a file
>>> should be. Can someone advise?
>>
>> Does this help?:
>>
>>   http://www.whatwg.org/specs/web-apps/current-work/#attr-source-type
>>
>
> normally, reading the docs does help :-) However, in my example, I  
> have
> previously tried the following,
>
> <source src="/media/audio/m4a/9001_10000/9807.m4a" type= "audio/mp4;
> codecs=&quot;mp4a.40.2&quot;"/>
>
> Using this, Safari stops playing the audio. It works without any type
> attribute, but that feels wrong. I'm wondering if my attempts so far
> have been using an incorrect mime-type, or/and a wrong codec
> declaration.
>
> I'm wondering if this has something to do with the issue,
> https://lists.webkit.org/pipermail/webkit-unassigned/2008-August/081596 
> .
> html
>
   Not dealing with parameters on a type attribute at all was fixed  
last August, see https://bugs.webkit.org/show_bug.cgi?id=20360.

   The issue you are seeing here is caused by a problem with WebKit's  
interaction with QuickTime on the Mac. Can you please file a bug  
report on <https://bugs.webkit.org/> ?

   Thanks for pointing out the issue,

eric



More information about the webkit-dev mailing list