mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 17:37:30 +09:00
Allow matroska mime types for video element and MSE
Allow avc (h.264) content in matroska/webm containers
This commit is contained in:
parent
3829b269ce
commit
a960d679d5
8 changed files with 44 additions and 5 deletions
|
|
@ -697,6 +697,9 @@ ContainerParser::CreateForMIMEType(const nsACString& aType)
|
|||
if (aType.LowerCaseEqualsLiteral("video/webm") || aType.LowerCaseEqualsLiteral("audio/webm")) {
|
||||
return new WebMContainerParser(aType);
|
||||
}
|
||||
if (aType.LowerCaseEqualsLiteral("video/x-matroska")) {
|
||||
return new WebMContainerParser(aType);
|
||||
}
|
||||
|
||||
#ifdef MOZ_FMP4
|
||||
if (aType.LowerCaseEqualsLiteral("video/mp4") || aType.LowerCaseEqualsLiteral("audio/mp4")) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -814,6 +814,7 @@ TrackBuffersManager::CreateDemuxerforMIMEType()
|
|||
ShutdownDemuxers();
|
||||
|
||||
if (mType.LowerCaseEqualsLiteral("video/webm") ||
|
||||
mType.LowerCaseEqualsLiteral("video/x-matroska") ||
|
||||
mType.LowerCaseEqualsLiteral("audio/webm")) {
|
||||
mInputDemuxer = new WebMDemuxer(mCurrentInputBuffer, true /* IsMediaSource*/ );
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue