xref: /aosp_15_r20/external/webrtc/examples/androidapp/README (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1This directory contains an example Android client for https://appr.tc
2
3Prerequisites:
4- "Getting the code", "Compiling", and "Using the Bundled Android SDK/NDK"
5  on http://www.webrtc.org/native-code/android
6
7Example of building & using the app:
8
9cd <path/to/webrtc>/src
10ninja -C out/Default AppRTCMobile
11adb install -r out/Default/apks/AppRTCMobile.apk
12
13In desktop chrome, navigate to https://appr.tc and note the r=<NNN> room
14this redirects to or navigate directly to https://appr.tc/r/<NNN> with
15your own room number. Launch AppRTC on the device and add same <NNN> into the room name list.
16
17You can also run application from a command line to connect to the first room in a list:
18adb shell am start -n org.appspot.apprtc/.ConnectActivity -a android.intent.action.VIEW
19This should result in the app launching on Android and connecting to the 3-dot-apprtc
20page displayed in the desktop browser.
21To run loopback test execute following command:
22adb shell am start -n org.appspot.apprtc/.ConnectActivity -a android.intent.action.VIEW --ez "org.appspot.apprtc.LOOPBACK" true
23
24