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 <Foundation/Foundation.h> | 11 #import <Foundation/Foundation.h> |
12 | 12 |
| 13 #import "webrtc/base/objc/RTCMacros.h" |
| 14 |
13 NS_ASSUME_NONNULL_BEGIN | 15 NS_ASSUME_NONNULL_BEGIN |
14 | 16 |
15 @class RTCAudioTrack; | 17 @class RTCAudioTrack; |
16 @class RTCPeerConnectionFactory; | 18 @class RTCPeerConnectionFactory; |
17 @class RTCVideoTrack; | 19 @class RTCVideoTrack; |
18 | 20 |
| 21 RTC_EXPORT |
19 @interface RTCMediaStream : NSObject | 22 @interface RTCMediaStream : NSObject |
20 | 23 |
21 /** The audio tracks in this stream. */ | 24 /** The audio tracks in this stream. */ |
22 @property(nonatomic, strong, readonly) NSArray<RTCAudioTrack *> *audioTracks; | 25 @property(nonatomic, strong, readonly) NSArray<RTCAudioTrack *> *audioTracks; |
23 | 26 |
24 /** The video tracks in this stream. */ | 27 /** The video tracks in this stream. */ |
25 @property(nonatomic, strong, readonly) NSArray<RTCVideoTrack *> *videoTracks; | 28 @property(nonatomic, strong, readonly) NSArray<RTCVideoTrack *> *videoTracks; |
26 | 29 |
27 /** An identifier for this media stream. */ | 30 /** An identifier for this media stream. */ |
28 @property(nonatomic, readonly) NSString *streamId; | 31 @property(nonatomic, readonly) NSString *streamId; |
29 | 32 |
30 - (instancetype)init NS_UNAVAILABLE; | 33 - (instancetype)init NS_UNAVAILABLE; |
31 | 34 |
32 /** Adds the given audio track to this media stream. */ | 35 /** Adds the given audio track to this media stream. */ |
33 - (void)addAudioTrack:(RTCAudioTrack *)audioTrack; | 36 - (void)addAudioTrack:(RTCAudioTrack *)audioTrack; |
34 | 37 |
35 /** Adds the given video track to this media stream. */ | 38 /** Adds the given video track to this media stream. */ |
36 - (void)addVideoTrack:(RTCVideoTrack *)videoTrack; | 39 - (void)addVideoTrack:(RTCVideoTrack *)videoTrack; |
37 | 40 |
38 /** Removes the given audio track to this media stream. */ | 41 /** Removes the given audio track to this media stream. */ |
39 - (void)removeAudioTrack:(RTCAudioTrack *)audioTrack; | 42 - (void)removeAudioTrack:(RTCAudioTrack *)audioTrack; |
40 | 43 |
41 /** Removes the given video track to this media stream. */ | 44 /** Removes the given video track to this media stream. */ |
42 - (void)removeVideoTrack:(RTCVideoTrack *)videoTrack; | 45 - (void)removeVideoTrack:(RTCVideoTrack *)videoTrack; |
43 | 46 |
44 @end | 47 @end |
45 | 48 |
46 NS_ASSUME_NONNULL_END | 49 NS_ASSUME_NONNULL_END |
OLD | NEW |