Bug 1272142 - Consider application/x-mpegurl as HLS. r?k17e draft
authorRalph Giles <giles@mozilla.com>
Wed, 11 May 2016 14:23:11 -0700
changeset 366002 0ded8c8c3f61154a3be87307f2d9fc8544fd06b4
parent 365730 3461f3cae78495f100a0f7d3d2e0b89292d3ec02
child 520687 dc50bf858358f4ad86046cb038f6da294f17b6e1
push id17883
push userbmo:giles@thaumas.net
push dateWed, 11 May 2016 21:24:30 +0000
reviewersk17e
bugs1272142
milestone49.0a1
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
dom/media/DecoderTraits.cpp
--- 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);