diff options
author | henrike@webrtc.org <henrike@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-07-12 16:04:50 +0000 |
---|---|---|
committer | henrike@webrtc.org <henrike@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-07-12 16:04:50 +0000 |
commit | a113c08d77afcecf042d96eacc23a0ed512ec122 (patch) | |
tree | 6c6738e13110ba9ee0cafda2f93ae248940e23b1 /examples/android/src/org | |
parent | 0c89f8bc457649dec2c73680dbfc1c47a6752b8a (diff) | |
download | talk-a113c08d77afcecf042d96eacc23a0ed512ec122.tar.gz |
Update talk folder to revision=49260075. Same as 369 in libjingle's google code repository.
TBR=wu@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/1797004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/talk@4338 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'examples/android/src/org')
-rw-r--r-- | examples/android/src/org/appspot/apprtc/AppRTCDemoActivity.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/android/src/org/appspot/apprtc/AppRTCDemoActivity.java b/examples/android/src/org/appspot/apprtc/AppRTCDemoActivity.java index bd17323..d8bc257 100644 --- a/examples/android/src/org/appspot/apprtc/AppRTCDemoActivity.java +++ b/examples/android/src/org/appspot/apprtc/AppRTCDemoActivity.java @@ -42,6 +42,7 @@ import android.widget.Toast; import org.json.JSONException; import org.json.JSONObject; +import org.webrtc.DataChannel; import org.webrtc.IceCandidate; import org.webrtc.MediaConstraints; import org.webrtc.MediaStream; @@ -333,6 +334,16 @@ public class AppRTCDemoActivity extends Activity } }); } + + @Override public void onDataChannel(final DataChannel dc) { + runOnUiThread(new Runnable() { + public void run() { + throw new RuntimeException( + "AppRTC doesn't use data channels, but got: " + dc.label() + + " anyway!"); + } + }); + } } // Implementation detail: handle offer creation/signaling and answer setting, |