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

Unified Diff: talk/app/webrtc/objc/RTCDataChannel.mm

Issue 1207613006: Support for onbufferedamountlow (Closed) Base URL: https://chromium.googlesource.com/external/webrtc/trunk/talk.git@master
Patch Set: Add a default OnBufferedAmountChange implementation Created 5 years, 6 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
Index: talk/app/webrtc/objc/RTCDataChannel.mm
diff --git a/talk/app/webrtc/objc/RTCDataChannel.mm b/talk/app/webrtc/objc/RTCDataChannel.mm
index 4fb03c284ebbb7e2e1ca8427bfabfee882cfc54f..b8439f7b07c8761103ca5775df03ec8f09262425 100644
--- a/talk/app/webrtc/objc/RTCDataChannel.mm
+++ b/talk/app/webrtc/objc/RTCDataChannel.mm
@@ -43,6 +43,15 @@ class RTCDataChannelObserver : public DataChannelObserver {
[_channel.delegate channelDidChangeState:_channel];
}
+ void OnBufferedAmountChange(uint64 previousAmount) override {
tkchin_webrtc 2015/06/30 00:24:11 nit: this might look cleaner with a local var (and
+ if ([_channel.delegate
+ respondsToSelector:@selector(channelDidChangeBufferedAmount:
+ previousAmount:)]) {
+ [_channel.delegate channelDidChangeBufferedAmount:_channel
+ previousAmount:previousAmount];
+ }
+ }
+
void OnMessage(const DataBuffer& buffer) override {
if (!_channel.delegate) {
return;

Powered by Google App Engine
This is Rietveld 408576698