Bug 217280

Summary: MediaRecorder Constructor is Ignoring the MediaRecorderOptions Parameter
Product: WebKit Reporter: Zachariah Moreno <zach>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ashley, eric.carlson, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Unspecified   
OS: Unspecified   

Description Zachariah Moreno 2020-10-03 13:24:23 PDT
Thank You for implementing the MediaRecorder.start(timeslice) parameter!

We developed a test to verify the MediaRecorderOptions parameter & mimeType property @ https://codepen.io/XachMoreno/full/bGpXdXX.

The MediaRecorderOptions.mimeType property within the MediaRecorder constructor is being ignored & the MIME type is fixed as video/mp4.

Furthermore, the MediaRecorder.isTypeSupported method is not implemented.

To replicate...

 1. Open Safari 14 or Safari Technology Preview 14.0.1
 2. Open the Develop Menu
 3. Hover over the Experimental Features list item
 4. Click on MediaRecorder to Enable it
 5. Navigate to https://codepen.io/XachMoreno/full/bGpXdXX
 6. Click on the red Request Media Permissions button at the bottom
 7. Allow access to Microphone & Camera
 8. Click on the Test Media Recorder Options button at the bottom
 9. Wait 1 seconds
 10. An alert dialog will open communicating test results for
     1. the MediaRecorder.mimeType property
     2. the MediaRecorder.isTypeSupported method
     3. MediaRecorderOptions.mimeType vs. MediaRecorder.mimeType
     4. MediaRecorderOptions.mimeType vs. Blob.type

Spec Reference - https://w3c.github.io/mediacapture-record/#dictdef-mediarecorderoptions

Docs Reference - https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder
Comment 1 Radar WebKit Bug Importer 2020-10-04 14:32:18 PDT
<rdar://problem/69934963>
Comment 2 Zachariah Moreno 2020-10-23 14:30:59 PDT
In Safari Technology Preview Release 115 14.1 the test in our original issue is no longer running & the Media Recorder constructor fails with the following error.

"NotSupportedError: mimeType is not supported"

Are we planning to support the mimeType property?
Comment 3 Eric Carlson 2020-10-23 22:09:48 PDT
(In reply to Zachariah Moreno from comment #2)
> In Safari Technology Preview Release 115 14.1 the test in our original issue
> is no longer running & the Media Recorder constructor fails with the
> following error.
> 
> "NotSupportedError: mimeType is not supported"
> 
> Are we planning to support the mimeType property?

MediaRecorderOptions.mimeType and MediaRecorder.isTypeSupported were added with https://bugs.webkit.org/show_bug.cgi?id=216856

*** This bug has been marked as a duplicate of bug 216856 ***