Bug 1272142 - Consider application/x-mpegurl as HLS. r?k17e
streambox.fr is serving .m3u8 files which this media type.
There are probably others, so accept this as well.
MozReview-Commit-ID: 1ZUan7TsBzD
--- a/dom/media/DecoderTraits.cpp
+++ b/dom/media/DecoderTraits.cpp
@@ -173,16 +173,17 @@ DecoderTraits::IsWebMAudioType(const nsA
return aType.EqualsASCII("audio/webm");
}
static char const *const gHttpLiveStreamingTypes[] = {
// For m3u8.
// https://tools.ietf.org/html/draft-pantos-http-live-streaming-19#section-10
"application/vnd.apple.mpegurl",
// Some sites serve these as the informal m3u type.
+ "application/x-mpegurl",
"audio/x-mpegurl",
nullptr
};
static bool
IsHttpLiveStreamingType(const nsACString& aType)
{
return CodecListContains(gHttpLiveStreamingTypes, aType);