/* * Called when participant joins the room */ private void addParticipant(Participant participant) { /* * This app only displays video for one additional participant per Room */ if (thumbnailVideoView.Visibility == View.VISIBLE) { Snackbar.make(connectActionFab, "Multiple participants are not currently support in this UI", Snackbar.LENGTH_LONG).setAction("Action", null).show(); return; } participantIdentity = participant.Identity; videoStatusTextView.Text = "Participant " + participantIdentity + " joined"; /* * Stop rendering local video track in primary view and move it to thumbnail view */ localVideoTrack.removeRenderer(primaryVideoView); thumbnailVideoView.Visibility = View.VISIBLE; localVideoTrack.addRenderer(thumbnailVideoView); localVideoView = thumbnailVideoView; /* * Start listening for participant media events */ participant.Media.Listener = mediaListener(); }
protected internal override void onDestroy() { localVideoTrack.removeRenderer(localVideoView); localVideoTrack.removeRenderer(snapshotVideoRenderer); localMedia.removeVideoTrack(localVideoTrack); localMedia.release(); base.onDestroy(); }
protected internal override void onDestroy() { localVideoTrack.removeRenderer(videoView); localMedia.removeVideoTrack(localVideoTrack); timerView.stop(); localMedia.release(); base.onDestroy(); }
private void stopScreenCapture() { localVideoView.Visibility = View.INVISIBLE; localMedia.removeVideoTrack(screenVideoTrack); screenCaptureMenuItem.Icon = R.drawable.ic_screen_share_white_24dp; screenCaptureMenuItem.Title = [email protected]_screen; screenVideoTrack.removeRenderer(localVideoView); }