<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>217280</bug_id>
          
          <creation_ts>2020-10-03 13:24:23 -0700</creation_ts>
          <short_desc>MediaRecorder Constructor is Ignoring the MediaRecorderOptions Parameter</short_desc>
          <delta_ts>2020-10-23 22:09:48 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>216856</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zachariah Moreno">zach</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ashley</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1694441</commentid>
    <comment_count>0</comment_count>
    <who name="Zachariah Moreno">zach</who>
    <bug_when>2020-10-03 13:24:23 -0700</bug_when>
    <thetext>Thank You for implementing the MediaRecorder.start(timeslice) parameter!

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

The MediaRecorderOptions.mimeType property within the MediaRecorder constructor is being ignored &amp; 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 &amp; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1694580</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-10-04 14:32:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/69934963&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701147</commentid>
    <comment_count>2</comment_count>
    <who name="Zachariah Moreno">zach</who>
    <bug_when>2020-10-23 14:30:59 -0700</bug_when>
    <thetext>In Safari Technology Preview Release 115 14.1 the test in our original issue is no longer running &amp; the Media Recorder constructor fails with the following error.

&quot;NotSupportedError: mimeType is not supported&quot;

Are we planning to support the mimeType property?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701207</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2020-10-23 22:09:48 -0700</bug_when>
    <thetext>(In reply to Zachariah Moreno from comment #2)
&gt; In Safari Technology Preview Release 115 14.1 the test in our original issue
&gt; is no longer running &amp; the Media Recorder constructor fails with the
&gt; following error.
&gt; 
&gt; &quot;NotSupportedError: mimeType is not supported&quot;
&gt; 
&gt; 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 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>