diff options
Diffstat (limited to 'chromium/third_party/libjingle/source/talk/app/webrtc/objc/RTCEnumConverter.mm')
-rw-r--r-- | chromium/third_party/libjingle/source/talk/app/webrtc/objc/RTCEnumConverter.mm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chromium/third_party/libjingle/source/talk/app/webrtc/objc/RTCEnumConverter.mm b/chromium/third_party/libjingle/source/talk/app/webrtc/objc/RTCEnumConverter.mm index 7c81c8d854d..9d019419c6e 100644 --- a/chromium/third_party/libjingle/source/talk/app/webrtc/objc/RTCEnumConverter.mm +++ b/chromium/third_party/libjingle/source/talk/app/webrtc/objc/RTCEnumConverter.mm @@ -81,6 +81,16 @@ } } ++ (webrtc::PeerConnectionInterface::StatsOutputLevel) + convertStatsOutputLevelToNative:(RTCStatsOutputLevel)statsOutputLevel { + switch (statsOutputLevel) { + case RTCStatsOutputLevelStandard: + return webrtc::PeerConnectionInterface::kStatsOutputLevelStandard; + case RTCStatsOutputLevelDebug: + return webrtc::PeerConnectionInterface::kStatsOutputLevelDebug; + } +} + + (RTCSourceState)convertSourceStateToObjC: (webrtc::MediaSourceInterface::SourceState)nativeState { switch (nativeState) { |