Skip to content

Commit

Permalink
Show avatar when video not available, add padding to grid layout for …
Browse files Browse the repository at this point in the history
…6 participants (#911)

Show avatar behind the video always, add bottom padding to participant layout
  • Loading branch information
aleksandar-apostolov authored Nov 9, 2023
1 parent ffcc650 commit 8db61e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 8db61e1

Please sign in to comment.