private void connectDeskShare() { deskShareReceiver = new BbbDeskShareReceiver(this) { @Override protected void onVideo(Video video) { // it will log a message when it receives a video packet super.onVideo(video); } }; deskShareReceiver.start(); }
private void stop() { removeParticipantJoinedListener(this); removeParticipantStatusChangeListener(this); removeConnectedListener(this); removeDisconnectedListener(this); removePublicChatMessageListener(this); for (BbbVideoReceiver receiver : remoteVideos.values()) receiver.stop(); remoteVideos.clear(); if (deskShareReceiver != null) deskShareReceiver.stop(); if (videoPublisher != null) videoPublisher.stop(); if (voiceConnection != null) voiceConnection.stop(); }