Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: MediaRecorder.isTypeSupported supported types/codecs #4033

Open
kevinoid opened this issue Jan 28, 2018 · 4 comments
Open

Suggestion: MediaRecorder.isTypeSupported supported types/codecs #4033

kevinoid opened this issue Jan 28, 2018 · 4 comments

Comments

@kevinoid
Copy link

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
Copy link
Author

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

@Schweinepriester
Copy link
Contributor

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
Copy link
Author

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

@Schweinepriester
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants