blob: 0e1b40ea45fa16ea371fa0ca6ec380ddc27bcda9 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://w3c.github.io/mediacapture-record/#mediarecorderoptions-section
enum BitrateMode { "constant", "variable" };
dictionary MediaRecorderOptions {
DOMString mimeType = ""; // Encoding mimeType.
// TODO(mcasas): Consider changing the following options to signed: https://github.com/w3c/mediacapture-record/issues/48, and/or using [EnforceRange]/[Clamp].
unsigned long audioBitsPerSecond;
unsigned long videoBitsPerSecond;
unsigned long bitsPerSecond;
BitrateMode audioBitrateMode = "variable";
};