summaryrefslogtreecommitdiff
path: root/examples/android/src/org/appspot/apprtc/AppRTCDemoActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'examples/android/src/org/appspot/apprtc/AppRTCDemoActivity.java')
-rw-r--r--examples/android/src/org/appspot/apprtc/AppRTCDemoActivity.java11
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,