W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > September 2018

Re: [mediacapture-record] Provide an option to enumerate all supported media types

From: Brad Isbell via GitHub <sysbot+gh@w3.org>
Date: Tue, 04 Sep 2018 02:30:45 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-418223175-1536028244-sysbot+gh@w3.org>
I believe this is more of a MediaRecorder API issue.  For the scope of this problem, it matters not what the device is capable of recording in.  What's relevant is the type that was actually recorded.

If you use the MediaRecorder without specifying a MIME type, there is no way to determine what was returned to you, and thus no way to reliably set a subsequent Blob type or name a file via normal conventions.  Short of digging into the bytes and sniffing yourself, there's no way to know if you recorded a WebM, Ogg, or what codecs were used.  You should have to set a type to know what was recorded.  Furthermore, in cases where you do set the MIME when instantiating the MediaRecorder, it seems unreliable to assume that this setting is guaranteed to control the output.

GitHub Notification of comment by bradisbell
Please view or discuss this issue at https://github.com/w3c/mediacapture-record/issues/59#issuecomment-418223175 using your GitHub account
Received on Tuesday, 4 September 2018 02:30:46 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:45 UTC