From a33037ea6cdbae1d4581618d08b7ce4e2c2ef45d Mon Sep 17 00:00:00 2001 From: "fischman@webrtc.org" Date: Sun, 10 Mar 2013 18:28:08 +0000 Subject: [PATCH] Added an android_channel.html reflector page to allow Android apps to use a WebView to speak the Channel API from Google AppEngine. BUG=webrtc:1169 Review URL: https://webrtc-codereview.appspot.com/1145006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3644 4adac7df-926f-26a2-2b94-8c16560cd09d --- samples/js/apprtc/html/android_channel.html | 54 +++++++++++++++++++++ samples/js/apprtc/index.html | 4 ++ 2 files changed, 58 insertions(+) create mode 100644 samples/js/apprtc/html/android_channel.html diff --git a/samples/js/apprtc/html/android_channel.html b/samples/js/apprtc/html/android_channel.html new file mode 100644 index 0000000000..6961e9c362 --- /dev/null +++ b/samples/js/apprtc/html/android_channel.html @@ -0,0 +1,54 @@ + + + + + + + + + diff --git a/samples/js/apprtc/index.html b/samples/js/apprtc/index.html index f3e68a7832..10a93d9515 100644 --- a/samples/js/apprtc/index.html +++ b/samples/js/apprtc/index.html @@ -130,6 +130,8 @@ miniVideo = document.getElementById("miniVideo"); remoteVideo = document.getElementById("remoteVideo"); resetStatus(); + // NOTE: AppRTCClient.java searches & parses this line; update there when + // changing here. openChannel('{{ token }}'); doGetUserMedia(); } @@ -250,6 +252,8 @@ function sendMessage(message) { var msgString = JSON.stringify(message); console.log('C->S: ' + msgString); + // NOTE: AppRTCClient.java searches & parses this line; update there when + // changing here. path = '/message?r={{ room_key }}' + '&u={{ me }}'; var xhr = new XMLHttpRequest(); xhr.open('POST', path, true);