mime type and html5 audio

Sebastian Dröge sebastian at centricular.com
Thu Jul 7 06:14:18 UTC 2016


On Di, 2016-07-05 at 23:28 -0700, Alice Wonder wrote:
> Linux - CentOS 7 to be specific, but my own build of gstreamer replacing 
> stock - version 1.6.2 is what I am currently running (I update few times 
> every year)
> 
> mp3 via html5 in FireFox works when I have the libmad plugin so I know 
> firefox is handing that off to gstreamer, but it stopped working with 
> tumblr.
> 
> When I looked at what Tumblr is doing, they are using "audio/mp3" as the 
> type attribute on the audio source node, which is incorrect.
> 
> However FireFox on Windows seems to not care, so I think the issue is 
> that FireFox on Linux is asking GStreamer if it can handle "audio/mp3" 
> and is being told no.
> 
> Is there a way within gstreamer to make "audio/mp3" be an alias for 
> "audio/mpeg;codecs=mp3" (or just "audio/mpeg") to solve this issue?

Mimetypes and caps names are not the same. You need to translate
between the two at some point.

For WebKit for example, this mapping can be found here:
https://github.com/WebKit/webkit/blob/master/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp#L1657

-- 

Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160707/4ec5c338/attachment.sig>


More information about the gstreamer-devel mailing list