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