Index: webrtc/api/objc/RTCMediaStreamTrack.mm |
diff --git a/webrtc/api/objc/RTCMediaStreamTrack.mm b/webrtc/api/objc/RTCMediaStreamTrack.mm |
index 260c89d66e55af55d7f20ab3058903cdc87ff2e6..25979b38d9a32bd968d531bdc66a5553ec77f4d7 100644 |
--- a/webrtc/api/objc/RTCMediaStreamTrack.mm |
+++ b/webrtc/api/objc/RTCMediaStreamTrack.mm |
@@ -67,41 +67,29 @@ |
+ (webrtc::MediaStreamTrackInterface::TrackState)nativeTrackStateForState: |
(RTCMediaStreamTrackState)state { |
switch (state) { |
- case RTCMediaStreamTrackStateInitializing: |
- return webrtc::MediaStreamTrackInterface::kInitializing; |
case RTCMediaStreamTrackStateLive: |
return webrtc::MediaStreamTrackInterface::kLive; |
case RTCMediaStreamTrackStateEnded: |
return webrtc::MediaStreamTrackInterface::kEnded; |
- case RTCMediaStreamTrackStateFailed: |
- return webrtc::MediaStreamTrackInterface::kFailed; |
} |
} |
+ (RTCMediaStreamTrackState)trackStateForNativeState: |
(webrtc::MediaStreamTrackInterface::TrackState)nativeState { |
switch (nativeState) { |
- case webrtc::MediaStreamTrackInterface::kInitializing: |
- return RTCMediaStreamTrackStateInitializing; |
case webrtc::MediaStreamTrackInterface::kLive: |
return RTCMediaStreamTrackStateLive; |
case webrtc::MediaStreamTrackInterface::kEnded: |
return RTCMediaStreamTrackStateEnded; |
- case webrtc::MediaStreamTrackInterface::kFailed: |
- return RTCMediaStreamTrackStateFailed; |
} |
} |
+ (NSString *)stringForState:(RTCMediaStreamTrackState)state { |
switch (state) { |
- case RTCMediaStreamTrackStateInitializing: |
- return @"Initializing"; |
case RTCMediaStreamTrackStateLive: |
return @"Live"; |
case RTCMediaStreamTrackStateEnded: |
return @"Ended"; |
- case RTCMediaStreamTrackStateFailed: |
- return @"Failed"; |
} |
} |