Use this SDK to add realtime video, audio and data features to your Android app. By connecting to LiveKit Cloud or a self-hosted server, you can quickly build applications such as multi-modal AI, live streaming, or video calls with just a few lines of code.
Docs and guides at https://docs.livekit.io
LiveKit Components for Android is available as a Maven package.
...
dependencies {
// The components package has a different versioning than the main LiveKit SDK.
implementation "io.livekit:livekit-android-compose-components:2.4.1"
// Snapshots of the latest development version are available at:
// implementation "io.livekit:livekit-android-compose-components:2.4.2-SNAPSHOT"
// Depend on LiveKit SDK separately to keep up to date.
implementation "io.livekit:livekit-android:$livekit_version"
}You'll also need jitpack as one of your repositories.
subprojects {
repositories {
google()
mavenCentral()
// ...
maven { url 'https://jitpack.io' }
// For SNAPSHOT access
// maven { url 'https://central.sonatype.com/repository/maven-snapshots/' }
}
}@Composable
fun exampleComposable() {
// Create and connect to a room.
RoomScope(
url = wsURL,
token = token,
audio = true,
video = true,
connect = true,
) {
// Get all the tracks in the room
val trackRefs = rememberTracks()
// Display the video tracks
LazyColumn(modifier = Modifier.fillMaxSize()) {
items(trackRefs.size) { index ->
VideoTrackView(
trackReference = trackRefs[index],
modifier = Modifier.fillParentMaxHeight(0.5f)
)
}
}
}
}See our Meet Example app for a simple teleconferencing app, and Livestream Example app for a fully-functional livestreaming app, with more fleshed out usage of the Components SDK.
| LiveKit Ecosystem | |
|---|---|
| Agents SDKs | Python 路 Node.js |
| LiveKit SDKs | Browser 路 Swift 路 Android 路 Flutter 路 React Native 路 Rust 路 Node.js 路 Python 路 Unity 路 Unity (WebGL) 路 ESP32 路 C++ |
| Starter Apps | Python Agent 路 TypeScript Agent 路 React App 路 SwiftUI App 路 Android App 路 Flutter App 路 React Native App 路 Web Embed |
| UI Components | React 路 Android Compose 路 SwiftUI 路 Flutter |
| Server APIs | Node.js 路 Golang 路 Ruby 路 Java/Kotlin 路 Python 路 Rust 路 PHP (community) 路 .NET (community) |
| Resources | Docs 路 Docs MCP Server 路 CLI 路 LiveKit Cloud |
| LiveKit Server OSS | LiveKit server 路 Egress 路 Ingress 路 SIP |
| Community | Developer Community 路 Slack 路 X 路 YouTube |