Skip to content

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

Add explicit support for video/matroska, audio/matroska, and
audio/x-matroska MIME types to MediaRecorderHandler.

Previously, video/x-matroska was partially supported but was
internally aliased to video/mp4 for codec verification. This change
removes that alias, allowing Matroska types to be processed natively.

The validation logic in CanSupportVideoType and CanSupportAudioType
is updated to accept these new MIME strings. Additionally,
ActualMimeType is updated to report the correct MIME type instead of
defaulting to WebM or MP4 when these types are used. TrackRecorder is
also updated to map these strings to the kVideoMatroska container
type.

Bug: 40921769
Change-Id: I911784d885d5f65670f080a22001996ac34e2228

Reviewed-on: https://chromium-review.googlesource.com/7262837
WPT-Export-Revision: b4f48a93730602fdd0aaf180ea06611a154c7b87

Add explicit support for `video/matroska`, `audio/matroska`, and
`audio/x-matroska` MIME types to `MediaRecorderHandler`.

Previously, `video/x-matroska` was partially supported but was
internally aliased to `video/mp4` for codec verification. This change
removes that alias, allowing Matroska types to be processed natively.

The validation logic in `CanSupportVideoType` and `CanSupportAudioType`
is updated to accept these new MIME strings. Additionally,
`ActualMimeType` is updated to report the correct MIME type instead of
defaulting to WebM or MP4 when these types are used. `TrackRecorder` is
also updated to map these strings to the `kVideoMatroska` container
type.

Bug: 40921769
Change-Id: I911784d885d5f65670f080a22001996ac34e2228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants