Hello,
We are developing where only host video and shared screen is available. We are using these below listed callbacks to implement this:
- onMeetingActiveVideo
- onSharingStatus
- onMeetingStatusChanged (meetingStatus == MEETING_STATUS_INMEETING)
On trigger from anyone of these callbacks we execute this code:
private fun refreshActiveScreen(userId: Long) {
val videoManager = mobileRTCVideoView.videoViewManager
videoManager?.removeAllVideoUnits()
if (viewModel.isOtherUserSharing())
videoManager?.addShareVideoUnit(userId, activeRenderInfo)
else videoManager?.addAttendeeVideoUnit(userId, activeRenderInfo)
}
But the problem is that these callbacks are not reliable as they gets triggered multiple times. Which leads the screen to go black and live multiple times. Is this anyway for me to know what is visible to user through “mobileRTCVideoView.videoViewManager” or some other type of check without resorting to boolean flags?