Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack+Private.h

Issue 2890513002: Revert of Split iOS sdk in to separate targets (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #import "WebRTC/RTCMediaStreamTrack.h"
12
13 #include "webrtc/api/mediastreaminterface.h"
14
15 typedef NS_ENUM(NSInteger, RTCMediaStreamTrackType) {
16 RTCMediaStreamTrackTypeAudio,
17 RTCMediaStreamTrackTypeVideo,
18 };
19
20 NS_ASSUME_NONNULL_BEGIN
21
22 @interface RTCMediaStreamTrack ()
23
24 /**
25 * The native MediaStreamTrackInterface passed in or created during
26 * construction.
27 */
28 @property(nonatomic, readonly)
29 rtc::scoped_refptr<webrtc::MediaStreamTrackInterface> nativeTrack;
30
31 /**
32 * Initialize an RTCMediaStreamTrack from a native MediaStreamTrackInterface.
33 */
34 - (instancetype)initWithNativeTrack:
35 (rtc::scoped_refptr<webrtc::MediaStreamTrackInterface>)nativeTrack
36 type:(RTCMediaStreamTrackType)type
37 NS_DESIGNATED_INITIALIZER;
38
39 - (instancetype)initWithNativeTrack:
40 (rtc::scoped_refptr<webrtc::MediaStreamTrackInterface>)nativeTrack;
41
42 - (BOOL)isEqualToTrack:(RTCMediaStreamTrack *)track;
43
44 + (webrtc::MediaStreamTrackInterface::TrackState)nativeTrackStateForState:
45 (RTCMediaStreamTrackState)state;
46
47 + (RTCMediaStreamTrackState)trackStateForNativeState:
48 (webrtc::MediaStreamTrackInterface::TrackState)nativeState;
49
50 + (NSString *)stringForState:(RTCMediaStreamTrackState)state;
51
52 @end
53
54 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698