browser-compat-data icon indicating copy to clipboard operation
browser-compat-data copied to clipboard

api.MediaRecorder.isTypeSupported_static - MediaRecorder.isTypeSupported wrongfully states true

Open KO81 opened this issue 1 year ago • 1 comments

What type of issue is this?

Other

What information was incorrect, unhelpful, or incomplete?

MediaRecorder.isTypeSupported("video/webm;codecs=opus") states true in 126.0 (64-bit) but it isn't

What browsers does this problem apply to, if applicable?

Firefox

What did you expect to see?

MediaRecorder.isTypeSupported actually returns a statement, which is true.

Did you test this? If so, how?

x=['webm','ogg','mp4','x-matroska','3gpp','3gpp2','3gp2','quicktime','mpeg','aac','flac','wav'],y=['vp9','vp8','avc1','av1','h265','h.265','h264','h.264','opus','pcm','aac','mpeg','mp4a'],z={capture:false,passive:true,once:false};init();a=[]; for(d of ['video','audio']){let e0,e1,e2,e3=_('t'); for(e0 of x){ for(e1 of y){e2=d+'/'+e0+';codecs='+e1; if(MediaRecorder.isTypeSupported(e2)&&!a.includes(e2)&&d=='video'){a.push(e2) }if(a.length==2){i(e3,e0+';codecs='+e1);e3.dataset.array=a[0].split('/')[1]+','+a[1].split('/')[1] } } } }

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/isTypeSupported_static

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/isTypeSupported_static

MDN metadata

MDN page report details
  • Query: api.MediaRecorder.isTypeSupported_static
  • Report started: 2024-05-26T07:41:32.871Z

KO81 avatar May 26 '24 07:05 KO81

I think this is too detail to mention in BCD project

skyclouds2001 avatar May 28 '24 17:05 skyclouds2001

I'm closing this issue for the following reasons:

  • The example provided is invalid, as:
    • It is not runnable
    • It does not highlight how the video format doesn't work despite reporting it does
  • BCD does not record information about what codecs/formats are supported in browsers
  • And, most importantly, I did test a WebM file with Opus audio, and it's completely functional!

queengooborg avatar Sep 09 '24 04:09 queengooborg