Giter VIP home page Giter VIP logo

sample-videortc's Introduction

Android Things video call sample app using WebRTC

=++================================================

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.

Pre-requisites

  1. Android Things compatible boards e.g. Raspberry Pi 3 or NXP boards
  2. Android Things compatible camera (for example, the Raspberry Pi 3 camera module)
  3. Android Studio 3+

WebRTC-specific dependencies

This sample has the following dependencies but they are either already included or directly linked so that no additional steps are necessary.

Build and Run

Build this app in Android Studio and run it on an Android Things board:

  • Deploy and run the app module, which creates and joins a room with random ID
  • The room ID will be shown on the display and on logcat. Take note of it, so that you can join the room with another device

Join the room from another WebRTC client:

  • From a web browser, go to https://appr.tc and enter the same room ID shown on the Android Things display, or
  • Use one of the native webRTC samples, like Android or iOS app and enter the room ID to join

Categories

  • Android Things

Solutions

  • IoT

Languages

  • Java

License

See LICENSE

sample-videortc's People

Contributors

shawngit avatar mangini avatar

Watchers

James Cloos avatar 周江南 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.