| 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 11 matching lines...) Expand all Loading... |
| 22 @property(nonatomic, strong, readonly) NSArray<RTCAudioTrack *> *audioTracks; | 22 @property(nonatomic, strong, readonly) NSArray<RTCAudioTrack *> *audioTracks; |
| 23 | 23 |
| 24 /** The video tracks in this stream. */ | 24 /** The video tracks in this stream. */ |
| 25 @property(nonatomic, strong, readonly) NSArray<RTCVideoTrack *> *videoTracks; | 25 @property(nonatomic, strong, readonly) NSArray<RTCVideoTrack *> *videoTracks; |
| 26 | 26 |
| 27 /** An identifier for this media stream. */ | 27 /** An identifier for this media stream. */ |
| 28 @property(nonatomic, readonly) NSString *streamId; | 28 @property(nonatomic, readonly) NSString *streamId; |
| 29 | 29 |
| 30 - (instancetype)init NS_UNAVAILABLE; | 30 - (instancetype)init NS_UNAVAILABLE; |
| 31 | 31 |
| 32 /** Initialize an RTCMediaStream with an id. */ | |
| 33 - (instancetype)initWithFactory:(RTCPeerConnectionFactory *)factory | |
| 34 streamId:(NSString *)streamId; | |
| 35 | |
| 36 /** Adds the given audio track to this media stream. */ | 32 /** Adds the given audio track to this media stream. */ |
| 37 - (void)addAudioTrack:(RTCAudioTrack *)audioTrack; | 33 - (void)addAudioTrack:(RTCAudioTrack *)audioTrack; |
| 38 | 34 |
| 39 /** Adds the given video track to this media stream. */ | 35 /** Adds the given video track to this media stream. */ |
| 40 - (void)addVideoTrack:(RTCVideoTrack *)videoTrack; | 36 - (void)addVideoTrack:(RTCVideoTrack *)videoTrack; |
| 41 | 37 |
| 42 /** Removes the given audio track to this media stream. */ | 38 /** Removes the given audio track to this media stream. */ |
| 43 - (void)removeAudioTrack:(RTCAudioTrack *)audioTrack; | 39 - (void)removeAudioTrack:(RTCAudioTrack *)audioTrack; |
| 44 | 40 |
| 45 /** Removes the given video track to this media stream. */ | 41 /** Removes the given video track to this media stream. */ |
| 46 - (void)removeVideoTrack:(RTCVideoTrack *)videoTrack; | 42 - (void)removeVideoTrack:(RTCVideoTrack *)videoTrack; |
| 47 | 43 |
| 48 @end | 44 @end |
| 49 | 45 |
| 50 NS_ASSUME_NONNULL_END | 46 NS_ASSUME_NONNULL_END |
| OLD | NEW |