@Override public void onParticipantJoined(IParticipant p) { if (isMyself(p.getUserId())) { if (videoFilename != null && videoFilename.length() > 0 && sendVideo) sendVideo(); } else { if (p.getStatus().doesHaveStream() && recvVideo) startReceivingVideo(p.getUserId()); } }
@Override public void onChangeHasStream(IParticipant p) { if (p.getUserId() == getMyUserId()) return; if (recvVideo) { if (p.getStatus().doesHaveStream()) { startReceivingVideo(p.getUserId()); } else { stopReceivingVideo(p.getUserId()); } } }
@Override public void onParticipantLeft(IParticipant p) { if (p.getStatus().doesHaveStream() && recvVideo) stopReceivingVideo(p.getUserId()); }