Giter Club home page Giter Club logo

daily-droid-app's Introduction

A 1 to 1 video chat app using the Daily Client SDK for Android

This demo is meant to showcase a basic one to one video chat app that uses Daily's native Android SDK mobile library.

Prerequisites

How the demo works

In the demo app, a user must enter a URL for a Daily Room, then press Join. The app will find the meeting room [0] and join the call. The app initializes a Call Client, which keeps track of important information about the meeting, like other participants (including their audio and video tracks) and the things they do on the call (e.g. muting their mic or leaving), and provides methods for interacting with the meeting. The app leverages this object to update its state accordingly, and to carry out user actions like muting or changing track-publishing statuses. When the user leaves the meeting room, the Call Client remains, but their call has ended. The Call Client is destroyed when the application exits.

[0] When testing or running this demo, you'll likely use a room you've manually created for calls. A production application will likely need to use the Daily REST API to create rooms on the fly for your users, which necessitates the use of a sensitive Daily API key. You likely don't want to embed this key in a production app. We recommend running a web server and keeping sensitive things like API keys there instead.

Please note this project is designed to work with rooms that have privacy set to public. If you are hardcoding a room URL, please bear in mind that token creation, pre-authorization and knock-for-access have not been implemented here or in the Daily Client SDK for Android, meaning you may not be able to join non-public meeting rooms using this demo for now.

Running locally

  1. Clone this repository locally, i.e.: git clone [email protected]:daily-demos/daily-android-demo.git
  2. Open the DailyDemo directory in Android Studio.
  3. Install dependencies by syncing your Android Studio project's gradle files using the Android Studio UI popups.
  4. Make the project.
  5. Run the project, either on a simulator (which will not have webcam access, but which can send an image in place of a real camera stream), or on a connected Android device.
  6. Connect to the room URL you are testing, and to see it work, connect again either in another simulator, on another device, or directly using a web browser. Careful of mic feedback! You might want to mute one or both side's audio if they're near each other.

Contributing and feedback

Let us know how experimenting with this demo goes! Feel free to open an Issue, or reach us any time at [email protected].

What's next

To get to know more Daily API methods and events, explore our other demos, like how to add your own chat interface.


Related blog posts/tutorials

Learn more about how to build your own video chat app in React using Daily with this tutorial.

daily-droid-app's People

Contributors

filipi87 avatar moubarak avatar wcarss avatar

Watchers

 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.