Bug 215018

Summary: MediaRecorder should support MediaRecorderOptions.mimeType
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebRTCAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: diego.caravana, eric.carlson, ews-watchlist, glenn, jer.noble, marcosdg3, philipj, sergio, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 216856    
Bug Blocks: 85851    
Attachments:
Description Flags
Patch
none
Rebasing none

Description youenn fablet 2020-07-31 08:03:33 PDT
MediaRecorder should support MediaRecorderOptions.mimeType
Comment 1 Radar WebKit Bug Importer 2020-08-07 08:04:26 PDT
<rdar://problem/66681508>
Comment 2 Diego Caravana 2020-09-18 02:23:24 PDT
If you need confirmation (or testing afterwards) with this one, in my case my code asks for "video/webm;codecs=vp9", or even only "video/webm", what I get is actually an MP4 container with AVC/AAC encoded video/audio.
Comment 3 Marcos G. 2020-09-24 12:55:31 PDT
As Diego said it would desirable to use vp9 codec for encoding. Here is an example: https://codepen.io/marcosdg3/pen/xxVMaQY

This specifies using the mimeType: "video/webm;codecs=vp9" and will output the type used after recording.
Comment 4 youenn fablet 2020-09-24 13:01:32 PDT
(In reply to Marcos G. from comment #3)
> As Diego said it would desirable to use vp9 codec for encoding. Here is an
> example: https://codepen.io/marcosdg3/pen/xxVMaQY
> 
> This specifies using the mimeType: "video/webm;codecs=vp9" and will output
> the type used after recording.

Webm is currently not supported in MacOS/iOS MediaRecorder backend.
That seems like a different request from mimeType.
Comment 5 youenn fablet 2020-09-30 07:57:02 PDT
Created attachment 410120 [details]
Patch
Comment 6 youenn fablet 2020-10-01 01:54:49 PDT
Created attachment 410209 [details]
Rebasing
Comment 7 EWS 2020-10-01 07:09:27 PDT
Committed r267833: <https://trac.webkit.org/changeset/267833>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 410209 [details].