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

Side by Side Diff: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h

Issue 2513063003: Add the OnAddTrack callback for Objective-C wrapper.
Patch Set: Fix the AppRTC. Remove the media stream caching. Created 3 years, 9 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
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/RTCRtpReceiver.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 didGenerateIceCandidate:(RTCIceCandidate *)candidate; 99 didGenerateIceCandidate:(RTCIceCandidate *)candidate;
100 100
101 /** Called when a group of local Ice candidates have been removed. */ 101 /** Called when a group of local Ice candidates have been removed. */
102 - (void)peerConnection:(RTCPeerConnection *)peerConnection 102 - (void)peerConnection:(RTCPeerConnection *)peerConnection
103 didRemoveIceCandidates:(NSArray<RTCIceCandidate *> *)candidates; 103 didRemoveIceCandidates:(NSArray<RTCIceCandidate *> *)candidates;
104 104
105 /** New data channel has been opened. */ 105 /** New data channel has been opened. */
106 - (void)peerConnection:(RTCPeerConnection *)peerConnection 106 - (void)peerConnection:(RTCPeerConnection *)peerConnection
107 didOpenDataChannel:(RTCDataChannel *)dataChannel; 107 didOpenDataChannel:(RTCDataChannel *)dataChannel;
108 108
109 @optional
110 /** Called when a new track is signaled from remote peer. The new track is
111 * attached to the RtpReceiver.
112 * TODO(zhihuang): Remove the @optional once the downstream applitions implement this method.*/
113 - (void)peerConnection:(RTCPeerConnection *)peerConnection
114 didAddTrack:(RTCRtpReceiver *)rtpReceiver
115 streams:(NSArray<RTCMediaStream *> *)mediaStreams;
116
109 @end 117 @end
110 118
111 RTC_EXPORT 119 RTC_EXPORT
112 @interface RTCPeerConnection : NSObject 120 @interface RTCPeerConnection : NSObject
113 121
114 /** The object that will be notifed about events such as state changes and 122 /** The object that will be notifed about events such as state changes and
115 * streams being added or removed. 123 * streams being added or removed.
116 */ 124 */
117 @property(nonatomic, weak, nullable) id<RTCPeerConnectionDelegate> delegate; 125 @property(nonatomic, weak, nullable) id<RTCPeerConnectionDelegate> delegate;
118 @property(nonatomic, readonly) NSArray<RTCMediaStream *> *localStreams; 126 @property(nonatomic, readonly) NSArray<RTCMediaStream *> *localStreams;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 */ 223 */
216 - (void)statsForTrack: 224 - (void)statsForTrack:
217 (nullable RTCMediaStreamTrack *)mediaStreamTrack 225 (nullable RTCMediaStreamTrack *)mediaStreamTrack
218 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel 226 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel
219 completionHandler: 227 completionHandler:
220 (nullable void (^)(NSArray<RTCLegacyStatsReport *> *stats))completionHandler ; 228 (nullable void (^)(NSArray<RTCLegacyStatsReport *> *stats))completionHandler ;
221 229
222 @end 230 @end
223 231
224 NS_ASSUME_NONNULL_END 232 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/RTCRtpReceiver.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698