This Android Things sample app demonstrates how to establish WebRTC video call. It's based on the original WebRTC Android sample, slightly modified to easily run on Android Things devices. For simplicity it creates a WebRTC room with a random ID, which is shown on display and in logcat, and then auto-joins the room on boot. Now this room can be joined to establish a video call connection from either a web client at https://appr.tc or an Android client running the original WebRTC sample by entering the same room ID.
Two WebRTC clients need to exchange session description when establishing video call connection via a signal server. This sample uses a hosted version of the WebRTC signaling server. Please refer to https://www.html5rocks.com/en/tutorials/webrtc/infrastructure/ for more information on WebRTC signaling.
Note: The Android Things Console will be turned down for non-commercial use on January 5, 2022. For more details, see the FAQ page.
This sample has the following dependencies but they are either already included or directly linked so that no additional steps are necessary.
Build this app in Android Studio and run it on an Android Things board:
app
module, which creates and joins a room with random IDJoin the room from another WebRTC client:
See LICENSE