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 |
(...skipping 19 matching lines...) Expand all Loading... |
30 rtc::scoped_refptr<webrtc::MediaStreamTrackInterface> nativeTrack; | 30 rtc::scoped_refptr<webrtc::MediaStreamTrackInterface> nativeTrack; |
31 | 31 |
32 /** | 32 /** |
33 * Initialize an RTCMediaStreamTrack from a native MediaStreamTrackInterface. | 33 * Initialize an RTCMediaStreamTrack from a native MediaStreamTrackInterface. |
34 */ | 34 */ |
35 - (instancetype)initWithNativeTrack: | 35 - (instancetype)initWithNativeTrack: |
36 (rtc::scoped_refptr<webrtc::MediaStreamTrackInterface>)nativeTrack | 36 (rtc::scoped_refptr<webrtc::MediaStreamTrackInterface>)nativeTrack |
37 type:(RTCMediaStreamTrackType)type | 37 type:(RTCMediaStreamTrackType)type |
38 NS_DESIGNATED_INITIALIZER; | 38 NS_DESIGNATED_INITIALIZER; |
39 | 39 |
| 40 - (instancetype)initWithNativeTrack: |
| 41 (rtc::scoped_refptr<webrtc::MediaStreamTrackInterface>)nativeTrack; |
| 42 |
| 43 - (BOOL)isEqualToTrack:(RTCMediaStreamTrack *)track; |
| 44 |
40 + (webrtc::MediaStreamTrackInterface::TrackState)nativeTrackStateForState: | 45 + (webrtc::MediaStreamTrackInterface::TrackState)nativeTrackStateForState: |
41 (RTCMediaStreamTrackState)state; | 46 (RTCMediaStreamTrackState)state; |
42 | 47 |
43 + (RTCMediaStreamTrackState)trackStateForNativeState: | 48 + (RTCMediaStreamTrackState)trackStateForNativeState: |
44 (webrtc::MediaStreamTrackInterface::TrackState)nativeState; | 49 (webrtc::MediaStreamTrackInterface::TrackState)nativeState; |
45 | 50 |
46 + (NSString *)stringForState:(RTCMediaStreamTrackState)state; | 51 + (NSString *)stringForState:(RTCMediaStreamTrackState)state; |
47 | 52 |
48 @end | 53 @end |
49 | 54 |
50 NS_ASSUME_NONNULL_END | 55 NS_ASSUME_NONNULL_END |
OLD | NEW |