Fyrd / caniuse

Raw browser/feature support data from caniuse.com
https://caniuse.com
Creative Commons Attribution 4.0 International
5.62k stars 1.38k forks source link

Suggestion: MediaRecorder.isTypeSupported supported types/codecs #4033

Open kevinoid opened 6 years ago

kevinoid commented 6 years ago

Although there is already data for the MediaRecorder API and for playable media formats (e.g. HEVC, MPEG4, Opus, etc.), it would be very useful to add data for which formats are supported for recording via the MediaRecorder API and with which media type parameters. This data can be queried using MediaRecorder.isTypeSupported.

I'm not very familiar with the caniuse data format. Would the best way to represent this be to create a separate JSON data file for each media type string? Is there another way to represent the data more compactly (especially for formats like video/webm where VP8 likely always supported when VP9 is, etc.)?

Thanks, Kevin

kevinoid commented 6 years ago

Note that there is a StackOverflow question about MediaRecorder type support which may provide a starting point for data collection.

Schweinepriester commented 3 years ago

Available via MDN: https://caniuse.com/mdn-api_mediarecorder_istypesupported

(Not to be confused with the same property but for MediaSource https://caniuse.com/mdn-api_mediasource_istypesupported)

kevinoid commented 3 years ago

Thanks @Schweinepriester. However, I don't see a list of supported types/codecs on the page you linked. Could you clarify?

Schweinepriester commented 3 years ago

Looking at https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/isTypeSupported it seems to me MediaRecorder.isTypeSupported is agnostic of types/codes or rather universal, so you can check anything with it, right?

So for the individual types/codecs we'd have to check the formats, e.g.

Ah, you are correct,

data for which formats are supported for recording via the MediaRecorder API and with which media type parameters

is still missing.