How to Make a Zoom-Like Video Conference App
How to Vibe Code a Zoom-Like Video Conference App
Stay in your creative flow. Direct AI models with high-level collaboration intent, stitch together a Jetpack Compose multi-participant video grid with active speaker borders, screen sharing, and in-call chat, and run it on your phone in under 30 minutes.
Core Stack
Compose Adaptive Grid
Media Engine
CameraX / WebRTC
AI Partner
Claude / Gemini
Target Time
25–35 Mins
The Vibe Coding Mobile Philosophy
Traditional video conferencing apps bog developers down in SDP offer/answer negotiation, SurfaceView z-order conflicts, and audio routing bugs before they ever test the meeting room layout. Vibe coding separates the experience from the plumbing: you design the dynamic speaker grid, raised-hand states, screen-share stage, and chat drawer first with AI, then drop in CameraX or WebRTC streams when ready.
Old-School Mobile Stress
- SurfaceView tiles overlapping and clipping rounded corners in XML.
- Spending 3 days setting up signaling servers just to render 4 participant tiles.
- Complex state bugs when switching between Grid View and Screen Share stage.
- Clunky bottom control bars that hide behind the keyboard during in-call chat.
The Vibe Coder Way
- Prompt AI for an adaptive Compose participant grid with active-speaker glow borders.
- Toggle between Gallery Grid and Live Screen-Share presentation stage.
- Test Mute, Camera Off, Hand Raise, and Live In-Call Chat out of the box.
- Attach a real CameraX front-camera preview with a 1-prompt upgrade.
The 4-Step Blueprint
From a blank Android Studio project to an interactive multi-participant meeting room.
Empty Compose Setup
Start a fresh Empty Activity (Compose) project in Android Studio named VibeMeet. Compose handles dynamic participant grids and overlays cleanly.
Configure Your Room
Select your meeting aesthetic, stage layout, and collaboration tools in the configurator below, then paste the prompt into Claude or Gemini.
Single-File Drop-In
Paste the generated code into MainActivity.kt to test participant tiles, mic/video toggles, hand raising, screen sharing, and in-call chat.
Bind CameraX & Lobby
Use the Prompt Vault below to wire the self-tile to Android's front camera via CameraX and add a pre-call greenroom lobby.
Vibe Prompt Configurator
Customize your conference room aesthetic, stage layout, and collaboration tools. Copy the generated prompt directly into Claude, Cursor, or Gemini.
Essential Elements of a Video Conference App
Whether hosting a team standup or a virtual classroom, make sure your video conferencing app covers these 6 core capabilities:
-
Multi-Participant Video Grid
Display multiple participants simultaneously in an adaptive grid with active-speaker border highlighting and 1-tap focus pinning.
-
High-Clarity Audio & Camera Controls
Provide unmistakable mute/unmute, camera on/off (with automatic initials avatar fallback), and hand-raise controls in a persistent bottom dock.
-
Live Screen Sharing Stage
Let presenters share slides, documents, or mobile screens in a dedicated presentation stage above the participant tiles.
-
In-Call Text Chat
Allow attendees to drop questions, meeting notes, and links into an in-call chat stream without interrupting the active speaker.
-
File & Deck Sharing
Support sharing agenda documents, PDFs, or collaborative links directly inside the meeting room sidebar or chat drawer.
-
Low-Latency Telemetry & Room Codes
Show the shareable meeting ID, elapsed call timer, encryption status, and millisecond network latency in the top header.
The "Golden" Single-File Compose Template
Replace the contents of your MainActivity.kt with this to run a working Video Conference Room right now.
package com.example.vibeconference
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.items
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import kotlinx.coroutines.delay
data class CallParticipant(
val id: Int,
val name: String,
val role: String,
val avatarColor: Color,
val isSpeaking: Boolean = false,
val isMuted: Boolean = false,
val isCameraOn: Boolean = true,
val isHandRaised: Boolean = false
)
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
MaterialTheme(
colorScheme = darkColorScheme(
primary = Color(0xFF10B981),
background = Color(0xFF070B12),
surface = Color(0xFF131B2B)
)
) {
Surface(modifier = Modifier.fillMaxSize(), color = MaterialTheme.colorScheme.background) {
VideoConferenceScreen()
}
}
}
}
}
@Composable
fun VideoConferenceScreen() {
var micEnabled by remember { mutableStateOf(true) }
var camEnabled by remember { mutableStateOf(true) }
var handRaised by remember { mutableStateOf(false) }
var isScreenSharing by remember { mutableStateOf(false) }
var showChatDialog by remember { mutableStateOf(false) }
var activeSpeakerId by remember { mutableIntStateOf(2) }
var elapsedSeconds by remember { mutableIntStateOf(845) }
val chatMessages = remember {
mutableStateListOf(
"Elena (PM): Uploaded the Q4 roadmap deck to the shared folder.",
"Marcus (Eng): Audio and video are crystal clear on 5G!"
)
}
var draftMessage by remember { mutableStateOf("") }
LaunchedEffect(Unit) {
while (true) {
delay(1000)
elapsedSeconds += 1
}
}
val participants = listOf(
CallParticipant(1, "You (Host)", "Product Lead", Color(0xFF6366F1), isSpeaking = micEnabled && activeSpeakerId == 1, isMuted = !micEnabled, isCameraOn = camEnabled, isHandRaised = handRaised),
CallParticipant(2, "Elena Rostova", "Design Director", Color(0xFFEC4899), isSpeaking = activeSpeakerId == 2, isMuted = false, isCameraOn = true),
CallParticipant(3, "Marcus Vance", "Android Architect", Color(0xFF06B6D4), isSpeaking = activeSpeakerId == 3, isMuted = false, isCameraOn = true),
CallParticipant(4, "Sora Takahashi", "AI Research", Color(0xFFF59E0B), isSpeaking = activeSpeakerId == 4, isMuted = true, isCameraOn = false, isHandRaised = true)
)
val mins = elapsedSeconds / 60
val secs = elapsedSeconds % 60
val timerText = String.format("%02d:%02d", mins, secs)
Column(modifier = Modifier.fillMaxSize().padding(14.dp)) {
// Top Conference Telemetry Bar
Row(
modifier = Modifier.fillMaxWidth().padding(bottom = 12.dp),
horizontalArrangement = Arrangement.SpaceBetween,
verticalAlignment = Alignment.CenterVertically
) {
Column {
Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) {
Text("VibeMeet Room", fontSize = 19.sp, fontWeight = FontWeight.ExtraBold, color = Color.White)
Surface(color = Color(0xFF064E3B), shape = RoundedCornerShape(6.dp)) {
Text("E2EE • 24ms", fontSize = 10.sp, color = Color(0xFF34D399), fontWeight = FontWeight.Bold, modifier = Modifier.padding(horizontal = 6.dp, vertical = 2.dp))
}
}
Text("ID: VIBE-804-912 • $timerText", fontSize = 12.sp, color = Color(0xFF94A3B8), fontFamily = FontFamily.Monospace)
}
OutlinedButton(
onClick = { showChatDialog = true },
contentPadding = PaddingValues(horizontal = 12.dp, vertical = 6.dp)
) {
Text("💬 Chat (${chatMessages.size})", fontSize = 12.sp)
}
}
if (isScreenSharing) {
Card(
shape = RoundedCornerShape(18.dp),
colors = CardDefaults.cardColors(containerColor = Color(0xFF1E293B)),
modifier = Modifier.fillMaxWidth().height(150.dp).padding(bottom = 10.dp)
) {
Box(
modifier = Modifier
.fillMaxSize()
.background(Brush.linearGradient(listOf(Color(0xFF0F172A), Color(0xFF1E3A8A))))
.padding(16.dp)
) {
Column(modifier = Modifier.align(Alignment.CenterStart)) {
Text("🖥 LIVE SCREEN SHARE STAGE", fontSize = 11.sp, color = Color(0xFF38BDF8), fontWeight = FontWeight.ExtraBold)
Spacer(modifier = Modifier.height(4.dp))
Text("Sprint 14 Architecture & Compose Metrics.pdf", fontSize = 16.sp, color = Color.White, fontWeight = FontWeight.Bold)
Text("Tap any participant tile below to switch active speaker focus.", fontSize = 12.sp, color = Color(0xFF94A3B8))
}
}
}
}
// Multi-Participant Video Grid
LazyVerticalGrid(
columns = GridCells.Fixed(2),
verticalArrangement = Arrangement.spacedBy(10.dp),
horizontalArrangement = Arrangement.spacedBy(10.dp),
modifier = Modifier.weight(1f)
) {
items(participants, key = { it.id }) { p ->
val borderColor = if (p.isSpeaking) Color(0xFF10B981) else Color(0xFF1E293B)
Box(
modifier = Modifier
.fillMaxWidth()
.height(if (isScreenSharing) 150.dp else 220.dp)
.clip(RoundedCornerShape(20.dp))
.background(
if (p.isCameraOn) {
Brush.verticalGradient(listOf(p.avatarColor.copy(alpha = 0.45f), Color(0xFF0F172A)))
} else {
Brush.verticalGradient(listOf(Color(0xFF131B2B), Color(0xFF0F172A)))
}
)
.border(width = if (p.isSpeaking) 2.5.dp else 1.dp, color = borderColor, shape = RoundedCornerShape(20.dp))
.clickable { activeSpeakerId = p.id }
.padding(12.dp)
) {
Row(
modifier = Modifier.fillMaxWidth().align(Alignment.TopStart),
horizontalArrangement = Arrangement.SpaceBetween
) {
if (p.isSpeaking) {
Surface(color = Color(0xFF10B981), shape = RoundedCornerShape(8.dp)) {
Text("SPEAKING", fontSize = 10.sp, color = Color.Black, fontWeight = FontWeight.ExtraBold, modifier = Modifier.padding(horizontal = 8.dp, vertical = 2.dp))
}
} else {
Spacer(modifier = Modifier.width(1.dp))
}
if (p.isHandRaised) {
Surface(color = Color(0xFFF59E0B), shape = RoundedCornerShape(8.dp)) {
Text("✋ Hand", fontSize = 10.sp, color = Color.Black, fontWeight = FontWeight.Bold, modifier = Modifier.padding(horizontal = 8.dp, vertical = 2.dp))
}
}
}
Box(
modifier = Modifier
.size(64.dp)
.align(Alignment.Center)
.clip(CircleShape)
.background(p.avatarColor),
contentAlignment = Alignment.Center
) {
Text(
text = p.name.take(2).uppercase(),
fontSize = 20.sp,
fontWeight = FontWeight.ExtraBold,
color = Color.White
)
}
Row(
modifier = Modifier.fillMaxWidth().align(Alignment.BottomStart),
horizontalArrangement = Arrangement.SpaceBetween,
verticalAlignment = Alignment.CenterVertically
) {
Column {
Text(p.name, fontSize = 13.sp, fontWeight = FontWeight.Bold, color = Color.White)
Text(p.role, fontSize = 10.sp, color = Color(0xFF94A3B8))
}
Surface(
color = if (p.isMuted) Color(0xFFEF4444) else Color(0xFF1E293B),
shape = RoundedCornerShape(8.dp)
) {
Text(
text = if (p.isMuted) "MUTED" else "MIC ON",
fontSize = 9.sp,
color = Color.White,
fontWeight = FontWeight.Bold,
modifier = Modifier.padding(horizontal = 6.dp, vertical = 3.dp)
)
}
}
}
}
}
Spacer(modifier = Modifier.height(12.dp))
// Bottom Call Control Bar
Card(
shape = RoundedCornerShape(22.dp),
colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface)
) {
Row(
modifier = Modifier.fillMaxWidth().padding(vertical = 10.dp, horizontal = 8.dp),
horizontalArrangement = Arrangement.SpaceEvenly,
verticalAlignment = Alignment.CenterVertically
) {
FilterChip(
selected = micEnabled,
onClick = { micEnabled = !micEnabled },
label = { Text(if (micEnabled) "🎙 Mic On" else "🔇 Muted", fontSize = 12.sp) }
)
FilterChip(
selected = camEnabled,
onClick = { camEnabled = !camEnabled },
label = { Text(if (camEnabled) "📷 Video On" else "🚫 Video Off", fontSize = 12.sp) }
)
FilterChip(
selected = isScreenSharing,
onClick = { isScreenSharing = !isScreenSharing },
label = { Text("🖥 Share", fontSize = 12.sp) }
)
FilterChip(
selected = handRaised,
onClick = { handRaised = !handRaised },
label = { Text("✋ Hand", fontSize = 12.sp) }
)
}
}
}
if (showChatDialog) {
AlertDialog(
onDismissRequest = { showChatDialog = false },
title = { Text("In-Call Room Chat", fontWeight = FontWeight.Bold, fontSize = 16.sp) },
text = {
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
chatMessages.forEach { msg ->
Surface(color = Color(0xFF1E293B), shape = RoundedCornerShape(10.dp), modifier = Modifier.fillMaxWidth()) {
Text(msg, fontSize = 12.sp, color = Color.White, modifier = Modifier.padding(10.dp))
}
}
OutlinedTextField(
value = draftMessage,
onValueChange = { draftMessage = it },
placeholder = { Text("Send message to room...") },
singleLine = true,
modifier = Modifier.fillMaxWidth()
)
}
},
confirmButton = {
Button(
enabled = draftMessage.isNotBlank(),
onClick = {
chatMessages.add("You: ${draftMessage.trim()}")
draftMessage = ""
}
) {
Text("Send")
}
},
dismissButton = {
TextButton(onClick = { showChatDialog = false }) {
Text("Close")
}
}
)
}
}
How to Debug Video Conference Glitches
Prevent screen dimming, clipping bugs, and audio routing issues with these three fixes:
Screen Dims Mid-Call
Keep the screen awake while inside the conference room: window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
Camera Preview Ignores Rounded Corners
When embedding a CameraX PreviewView in Compose, use TextureView mode so Modifier.clip() works:
previewView.implementationMode = PreviewView.ImplementationMode.COMPATIBLE
Audio Plays on Earpiece Instead of Speaker
Ask your AI assistant to configure Android's AudioManager:
"Switch AudioManager to MODE_IN_COMMUNICATION and route audio to speakerphone on call start."
The Vibe Prompt Vault
Copy-paste prompts to add a pre-call greenroom lobby, live CameraX self-preview, and floating emoji reactions.
🚪 Prompt: Add Pre-Call Greenroom Lobby with Room Code & Mic Check
"Add a PreCallLobbyScreen shown before entering VideoConferenceScreen. Include a camera preview card, display name input, Room ID field (defaulting to VIBE-804-912), Mic/Video toggle switches, and a 'Join Meeting Now' button."
📷 Prompt: Bind Local Participant Tile to Front Camera with CameraX
"Update Participant #1 ('You') in VideoConferenceScreen so that when camEnabled is true and CAMERA permission is granted, it renders a live front-camera PreviewView using AndroidView and ProcessCameraProvider bound to LocalLifecycleOwner."
🎉 Prompt: Add Floating Emoji Reaction Bursts & Live Captions Banner
"Add a reaction bar (👍, 🔥, 🎉, 👏) that animates floating emoji badges upward across the screen using Animatable, plus a 'CC Captions' toggle that displays a live auto-scrolling closed caption subtitle banner above the bottom control dock."