Skip to content

This repo explains the implementation of LiveKit Android SDK. Steps for creating local LiveKit server for token generation.

Notifications You must be signed in to change notification settings

Asim-7/LiveKitSample

Repository files navigation

LiveKit Android

Introduction

  • Implementation of LiveKit SDK.
  • Helpful comments added
  • Details for setting up local server for generating tokens.

LiveKit Credentials

Add your own LiveKit url and token bofore running the app.

Setting up Local LiveKit Server (Mac)

Create Local Server: (LiveKit)

On CLI run "livekit-server" (for only local ip access) or "livekit-server --dev --bind 0.0.0.0" (for global ip access)

Open this on browser: "http://127.0.0.1:7880/ " it should show "Ok" message so server is up and running

Generate Tokens: (LiveKit)

Open project folder in VS Code: if npm packages not installed (run in VSCode cli: "npm install") and than run "node server.js" -> This will start a server to generate tokens

Open Postman, do a GET request to url: "localhost:3333/getToken/applicationNameOfYourChoice" e.g. localhost:3333/getToken/TestingLiveKit -> in result it will give out LiveKit token

Test Connection: (LiveKit)

Test local connection with using token got from step 3 and url as: "ws://localhost:7880" (use localhost if same machine otherwise use your ip address instead)

Connection to Room: (LiveKit )

Test using 2 participants, 1 sharing screen and other displaying the video stream.

About

This repo explains the implementation of LiveKit Android SDK. Steps for creating local LiveKit server for token generation.

Topics

Resources

Stars

Watchers

Forks

Languages