private void sendVideo() { RtmpReader reader = new GlobalFlvReader(videoLoader); String streamName = reader.getWidth() + "x" + reader.getHeight() + getMyUserId(); if (getJoinService().getClass() == JoinService0Dot8.class) streamName += "-" + new Date().getTime(); videoPublisher = new BbbVideoPublisher(this, reader, streamName); videoPublisher.setLoop(true); videoPublisher.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(); }