blob: b6191689039e04abc8e2fc1f67b71b359bb42ac4 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://github.com/w3c/web-codecs
enum OpusBitstreamFormat {
"opus",
"ogg",
};
// NOTE: Keep this structure in sync with CopyOpusConfig() defined in
// audio_encoder.cc.
dictionary OpusEncoderConfig {
OpusBitstreamFormat format = "opus";
[EnforceRange] unsigned long long frameDuration = 20000;
[EnforceRange] unsigned long complexity;
[EnforceRange] unsigned long packetlossperc = 0;
boolean useinbandfec = false;
boolean usedtx = false;
};