diff --git a/dom/media/VideoUtils.cpp b/dom/media/VideoUtils.cpp index 088015bc064d..9ad4c0c35677 100644 --- a/dom/media/VideoUtils.cpp +++ b/dom/media/VideoUtils.cpp @@ -475,7 +475,8 @@ IsAACCodecString(const nsAString& aCodec) return aCodec.EqualsLiteral("mp4a.40.2") || // MPEG4 AAC-LC aCodec.EqualsLiteral("mp4a.40.5") || // MPEG4 HE-AAC - aCodec.EqualsLiteral("mp4a.67"); // MPEG2 AAC-LC} + aCodec.EqualsLiteral("mp4a.67") || // MPEG2 AAC-LC + aCodec.EqualsLiteral("mp4a.40.29"); // MPEG4 HE-AACv2 } bool diff --git a/dom/media/test/test_can_play_type_mpeg.html b/dom/media/test/test_can_play_type_mpeg.html index c73ad078f532..99685b4461fc 100644 --- a/dom/media/test/test_can_play_type_mpeg.html +++ b/dom/media/test/test_can_play_type_mpeg.html @@ -76,7 +76,8 @@ function check_mp4(v, enabled) { check("audio/mp4; codecs=mp4a.40.5", "probably"); check("audio/x-m4a; codecs=\"mp4a.40.5\"", "probably"); check("audio/x-m4a; codecs=mp4a.40.5", "probably"); - + // HE-AAC v2 + check("audio/mp4; codecs=\"mp4a.40.29\"", "probably"); } function check_mp3(v, enabled) {