W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > February 2017

Re: [mediacapture-record] Rate control

From: Mikeal Rogers via GitHub <sysbot+gh@w3.org>
Date: Wed, 01 Feb 2017 20:08:07 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-276767060-1485979685-sysbot+gh@w3.org>
@jnoring because there are no required encoders in the spec people are
 getting by with 
[MediaRecorder.isTypeSupported](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/isTypeSupported).
 The problem you describe is similar, that each encoder has differing 
options as well.

I would recommend something like a 
`MediaRecorder.supportedMedia()`method which would return information 
about the supported content types and their encoding options. If the 
user tries to use an unsupported option then it would be perfectly 
acceptable just to throw.

In other words, rather than trying to abstract differing encoder 
options, which is probably impossible, let's just bubble this 
information up to the user and throw if they use unsupported options.

-- 
GitHub Notification of comment by mikeal
Please view or discuss this issue at 
https://github.com/w3c/mediacapture-record/issues/57#issuecomment-276767060
 using your GitHub account
Received on Wednesday, 1 February 2017 20:08:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:31 UTC