private void findVideoSender() { for (RtpSender sender : peerConnection.getSenders()) { if (sender.track() != null) { String trackType = sender.track().kind(); if (trackType.equals(VIDEO_TRACK_TYPE)) { Log.d(TAG, "Found video sender."); localVideoSender = sender; } } } }