Bug 1372501 - Add checking whether HLS mimetype is supported in DecoderTraits::IsSupportedInVideoDocument. r?jya draft
authorJames Cheng <jacheng@mozilla.com>
Tue, 13 Jun 2017 15:56:32 +0800
changeset 593391 275e71b39ae26177b6cbf255802cdc218b452303
parent 593303 a8f8e440d627d686fa8898483aa9c5da928a8fa4
child 633092 a290ae4f0632beb26549e899d08f0b36bb3ad921
push id63676
push userbmo:jacheng@mozilla.com
push dateTue, 13 Jun 2017 13:50:07 +0000
reviewersjya
bugs1372501
milestone56.0a1
Bug 1372501 - Add checking whether HLS mimetype is supported in DecoderTraits::IsSupportedInVideoDocument. r?jya MozReview-Commit-ID: I3THa5v1DAf
dom/media/DecoderTraits.cpp
--- a/dom/media/DecoderTraits.cpp
+++ b/dom/media/DecoderTraits.cpp
@@ -409,12 +409,15 @@ bool DecoderTraits::IsSupportedInVideoDo
     (MediaDecoder::IsAndroidMediaPluginEnabled() && IsAndroidMediaType(*type)) ||
 #endif
 #ifdef MOZ_FMP4
     MP4Decoder::IsSupportedType(*type, /* DecoderDoctorDiagnostics* */ nullptr) ||
 #endif
     MP3Decoder::IsSupportedType(*type) ||
     ADTSDecoder::IsSupportedType(*type) ||
     FlacDecoder::IsSupportedType(*type) ||
+#ifdef MOZ_ANDROID_HLS_SUPPORT
+    HLSDecoder::IsSupportedType(*type) ||
+#endif
     false;
 }
 
 } // namespace mozilla