Commit 4f0c7e96 authored by Markus Handell's avatar Markus Handell Committed by Commit Bot

RTCRtpTransceiverDirection: add "stopped" enum value.

Work on RTP header extension control requires the new
RTCRtpTransceiverDirection enum value "stopped", but it's
not possible to conditionally add the enum value under
a flag. The work to add "stopped" is underway in
RTCRtpTransceiver's new "stop" functionality so we're
landing the attribute addition under this intent to ship.

This change expands the serialization functions to allow
landing the "stopped" enum value in the WebRTC API, but
doesn't yet serialize the value.

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/65YdUi02yZk
Bug: 980879

Change-Id: I32833ff16720a002b193b33e71c2fb493227002e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2093219
Commit-Queue: Markus Handell <handellm@google.com>
Reviewed-by: default avatarHarald Alvestrand <hta@chromium.org>
Reviewed-by: default avatarHenrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748233}
parent d49c13a5
...@@ -144,6 +144,9 @@ String SerializeDirection(webrtc::RtpTransceiverDirection direction) { ...@@ -144,6 +144,9 @@ String SerializeDirection(webrtc::RtpTransceiverDirection direction) {
return "'recvonly'"; return "'recvonly'";
case webrtc::RtpTransceiverDirection::kInactive: case webrtc::RtpTransceiverDirection::kInactive:
return "'inactive'"; return "'inactive'";
default:
NOTREACHED();
return String();
} }
} }
......
...@@ -28,6 +28,9 @@ String TransceiverDirectionToString( ...@@ -28,6 +28,9 @@ String TransceiverDirectionToString(
return "recvonly"; return "recvonly";
case webrtc::RtpTransceiverDirection::kInactive: case webrtc::RtpTransceiverDirection::kInactive:
return "inactive"; return "inactive";
default:
NOTREACHED();
return String();
} }
} }
......
...@@ -7,7 +7,8 @@ enum RTCRtpTransceiverDirection { ...@@ -7,7 +7,8 @@ enum RTCRtpTransceiverDirection {
"sendrecv", "sendrecv",
"sendonly", "sendonly",
"recvonly", "recvonly",
"inactive" "inactive",
"stopped"
}; };
// https://w3c.github.io/webrtc-pc/#dom-rtcrtptransceiver // https://w3c.github.io/webrtc-pc/#dom-rtcrtptransceiver
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment