Allow matroska mime types for video element and MSE

Allow avc (h.264) content in matroska/webm containers
This commit is contained in:
Jeroen Vreeken 2019-07-10 11:05:38 +02:00 committed by Roy Tam
commit a960d679d5
8 changed files with 44 additions and 5 deletions

View file

@ -110,7 +110,8 @@ MediaSource::IsTypeSupported(const nsAString& aType, DecoderDoctorDiagnostics* a
}
return NS_OK;
}
if (mimeType.EqualsASCII("video/webm")) {
if (mimeType.EqualsASCII("video/webm") ||
mimeType.EqualsASCII("video/x-matroska")) {
if (!(Preferences::GetBool("media.mediasource.webm.enabled", false) ||
IsWebMForced(aDiagnostics))) {
return NS_ERROR_DOM_NOT_SUPPORTED_ERR;