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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/RTCRtpReceiver.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h
diff --git a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h
index 4438eb28ab5ecf4fb53c4a7e645ff0c08bd4c5da..785dccff91496f1db2f1d37d4de68865d4f48e52 100644
--- a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h
+++ b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h
@@ -106,6 +106,14 @@ RTC_EXPORT
- (void)peerConnection:(RTCPeerConnection *)peerConnection
didOpenDataChannel:(RTCDataChannel *)dataChannel;
+@optional
+/** Called when a new track is signaled from remote peer. The new track is
+ * attached to the RtpReceiver.
+ * TODO(zhihuang): Remove the @optional once the downstream applitions implement this method.*/
+- (void)peerConnection:(RTCPeerConnection *)peerConnection
+ didAddTrack:(RTCRtpReceiver *)rtpReceiver
+ streams:(NSArray<RTCMediaStream *> *)mediaStreams;
+
@end
RTC_EXPORT
« 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