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

[mediacapture-record] Should MediaRecorderOptions fields be optional?

From: Elias Meire via GitHub <sysbot+gh@w3.org>
Date: Thu, 15 Nov 2018 10:51:47 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-381105111-1542279106-sysbot+gh@w3.org>
eliasmeire has just created a new issue for https://github.com/w3c/mediacapture-record:

== Should MediaRecorderOptions fields be optional? ==
`MediaRecorderOptions` is defined as:

```webidl
dictionary MediaRecorderOptions {
  DOMString mimeType;
  unsigned long audioBitsPerSecond;
  unsigned long videoBitsPerSecond;
  unsigned long bitsPerSecond;
};
```

Shouldn't all the members be optional/nullable?

```webidl
dictionary MediaRecorderOptions {
  DOMString? mimeType;
  unsigned long? audioBitsPerSecond;
  unsigned long? videoBitsPerSecond;
  unsigned long? bitsPerSecond;
};
```
or should all members be specified when giving options to the MediaRecorder constructor?

Please view or discuss this issue at https://github.com/w3c/mediacapture-record/issues/156 using your GitHub account
Received on Thursday, 15 November 2018 10:51:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:45 UTC