in azure-communication-ui/calling/src/main/java/com/azure/android/communication/ui/calling/presentation/VideoViewManager.kt [36:46]
fun updateScalingForRemoteStream() {
val remoteParticipants = callingSDKWrapper.getRemoteParticipantsMap()
// for TV, on new participant join, change first remote participant scaling from fit to crop
if (isAndroidTV && remoteParticipants.size > 1 && remoteParticipantVideoRendererMap.size == 1) {
if (!remoteParticipantVideoRendererMap.values.first().isScreenShareView) {
remoteParticipantVideoRendererMap.values.first().rendererView?.let {
it.updateScalingMode(ScalingMode.CROP)
}
}
}
}