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

Side by Side Diff: talk/app/webrtc/objc/RTCPeerConnectionObserver.mm

Issue 1640173004: Revert of Adding "first packet received" notification to PeerConnectionObserver. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 } 98 }
99 99
100 void RTCPeerConnectionObserver::OnIceCandidate( 100 void RTCPeerConnectionObserver::OnIceCandidate(
101 const IceCandidateInterface* candidate) { 101 const IceCandidateInterface* candidate) {
102 RTCICECandidate* iceCandidate = 102 RTCICECandidate* iceCandidate =
103 [[RTCICECandidate alloc] initWithCandidate:candidate]; 103 [[RTCICECandidate alloc] initWithCandidate:candidate];
104 [_peerConnection.delegate peerConnection:_peerConnection 104 [_peerConnection.delegate peerConnection:_peerConnection
105 gotICECandidate:iceCandidate]; 105 gotICECandidate:iceCandidate];
106 } 106 }
107 107
108 void RTCPeerConnectionObserver::OnFirstMediaPacketReceived() {
109 id<RTCPeerConnectionDelegate> delegate = _peerConnection.delegate;
110 [delegate peerConnectionOnFirstMediaPacketReceived:_peerConnection];
111 }
112
113 } // namespace webrtc 108 } // namespace webrtc
OLDNEW
« no previous file with comments | « talk/app/webrtc/objc/RTCPeerConnectionObserver.h ('k') | talk/app/webrtc/objc/public/RTCPeerConnectionDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698