OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #import "RTCMediaStreamTrack.h" | 11 #import "RTCMediaStreamTrack+Private.h" |
12 | 12 |
13 #import "webrtc/api/objc/RTCMediaStreamTrack+Private.h" | 13 #import "NSString+StdString.h" |
14 #import "webrtc/base/objc/NSString+StdString.h" | |
15 | 14 |
16 @implementation RTCMediaStreamTrack { | 15 @implementation RTCMediaStreamTrack { |
17 rtc::scoped_refptr<webrtc::MediaStreamTrackInterface> _nativeTrack; | 16 rtc::scoped_refptr<webrtc::MediaStreamTrackInterface> _nativeTrack; |
18 RTCMediaStreamTrackType _type; | 17 RTCMediaStreamTrackType _type; |
19 } | 18 } |
20 | 19 |
21 - (NSString *)kind { | 20 - (NSString *)kind { |
22 return [NSString stringForStdString:_nativeTrack->kind()]; | 21 return [NSString stringForStdString:_nativeTrack->kind()]; |
23 } | 22 } |
24 | 23 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 + (NSString *)stringForState:(RTCMediaStreamTrackState)state { | 123 + (NSString *)stringForState:(RTCMediaStreamTrackState)state { |
125 switch (state) { | 124 switch (state) { |
126 case RTCMediaStreamTrackStateLive: | 125 case RTCMediaStreamTrackStateLive: |
127 return @"Live"; | 126 return @"Live"; |
128 case RTCMediaStreamTrackStateEnded: | 127 case RTCMediaStreamTrackStateEnded: |
129 return @"Ended"; | 128 return @"Ended"; |
130 } | 129 } |
131 } | 130 } |
132 | 131 |
133 @end | 132 @end |
OLD | NEW |