diff --git a/stream-video-android-compose/src/main/kotlin/io/getstream/video/android/compose/ui/components/call/activecall/CallContent.kt b/stream-video-android-compose/src/main/kotlin/io/getstream/video/android/compose/ui/components/call/activecall/CallContent.kt index e27bc2d099..627d04c682 100644 --- a/stream-video-android-compose/src/main/kotlin/io/getstream/video/android/compose/ui/components/call/activecall/CallContent.kt +++ b/stream-video-android-compose/src/main/kotlin/io/getstream/video/android/compose/ui/components/call/activecall/CallContent.kt @@ -135,7 +135,8 @@ public fun CallContent( call = call, modifier = Modifier .fillMaxSize() - .weight(1f), + .weight(1f) + .padding(bottom = VideoTheme.dimens.participantsGridPadding), style = style, videoRenderer = videoRenderer, ) diff --git a/stream-video-android-compose/src/main/kotlin/io/getstream/video/android/compose/ui/components/video/VideoRenderer.kt b/stream-video-android-compose/src/main/kotlin/io/getstream/video/android/compose/ui/components/video/VideoRenderer.kt index f813b6caf5..352ed6dae7 100644 --- a/stream-video-android-compose/src/main/kotlin/io/getstream/video/android/compose/ui/components/video/VideoRenderer.kt +++ b/stream-video-android-compose/src/main/kotlin/io/getstream/video/android/compose/ui/components/video/VideoRenderer.kt @@ -93,6 +93,9 @@ public fun VideoRenderer( return } + // Show avatar always behind the video. + videoFallbackContent.invoke(call) + if (video?.enabled == true) { val mediaTrack = video.track val sessionId = video.sessionId @@ -132,13 +135,7 @@ public fun VideoRenderer( modifier = modifier.testTag("video_renderer"), ) } - } else { - // fallback when the video is available but the track didn't load yet - videoFallbackContent.invoke(call) } - } else { - // fallback when no video is available. video.enabled is false - videoFallbackContent.invoke(call) } }