fun removeRemoteParticipantVideoRenderer()

in azure-communication-ui/calling/src/main/java/com/azure/android/communication/ui/calling/presentation/VideoViewManager.kt [68:85]


    fun removeRemoteParticipantVideoRenderer(
        userVideoStreams: List<Pair<String, String>>,
    ) {
        removeRemoteParticipantRenderer(userVideoStreams)
        val remoteParticipants = callingSDKWrapper.getRemoteParticipantsMap()

        // for TV, for last participant, change last remote participant scaling from crop to fit
        if (isAndroidTV && userVideoStreams.isNotEmpty() &&
            remoteParticipantVideoRendererMap.size == 1 &&
            remoteParticipants.size == 1
        ) {
            if (!remoteParticipantVideoRendererMap.values.first().isScreenShareView) {
                remoteParticipantVideoRendererMap.values.first().rendererView?.let {
                    it.updateScalingMode(ScalingMode.FIT)
                }
            }
        }
    }