// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// Deprecated; see ElementaryMediaStreamTrackConfig::decodingMode.
enum DecodingMode {
- "hardware", // Allow only hardware decoder to be used
- // TODO(m.jurkiewicz): Provide implementation for this option (VDWASM-419)
- // Current implementation always fallback to software decoder
- "hardware-with-fallback", // Fallback to software decoder
- "software" // Use only software decoder
+ // Deprecated. `hardware` is treated as `hardware-with-fallback`.
+ "hardware",
+
+ // Hint HW decoder should be prioritized when selecting decoder.
+ "hardware-with-fallback",
+
+ // Hint SW decoder should be prioritized when selecting decoder.
+ "software"
};
dictionary ElementaryMediaStreamTrackConfig {
DOMString mimeType;
BufferSource extradata;
// Since ElementaryMediaStreamSource version 3.0
+ // Deprecated. Decoder resource management should be handled by WebEngine:
+ // * This option should be left empty to enable optimal automatic decoder
+ // selection.
+ // * If set, will be treated as a decoder hint and may not be respected by the
+ // implementation.
DecodingMode? decodingMode;
EncryptionMode? encryptionMode;
};
V8DecodingMode::Enum v8_decoding_mode) {
switch (v8_decoding_mode) {
case V8DecodingMode::Enum::kHardware:
- return media::DecoderSelectionPolicy::kHardware;
+ EMSS_LOG_NO_INSTANCE(INFO)
+ << "Deprecated `hardware` decoding mode option was specified. "
+ "`hardware-with-fallback` will be used instead.";
+ [[fallthrough]];
case V8DecodingMode::Enum::kHardwareWithFallback:
return media::DecoderSelectionPolicy::kHardwareWithFallback;
case V8DecodingMode::Enum::kSoftware: