Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-12-07 21:31:49 +01:00
parent 00eac7549e
commit 5ef965909a

View file

@ -566,6 +566,7 @@ public class CallActivity extends AppCompatActivity {
videoCapturer.dispose(); videoCapturer.dispose();
} }
if (localMediaStream.videoTracks.size() > 0) { if (localMediaStream.videoTracks.size() > 0) {
localMediaStream.removeTrack(localMediaStream.videoTracks.get(0)); localMediaStream.removeTrack(localMediaStream.videoTracks.get(0));
} }
@ -573,8 +574,14 @@ public class CallActivity extends AppCompatActivity {
if (localMediaStream.audioTracks.size() > 0) { if (localMediaStream.audioTracks.size() > 0) {
localMediaStream.removeTrack(localMediaStream.audioTracks.get(0)); localMediaStream.removeTrack(localMediaStream.audioTracks.get(0));
} }
localVideoTrack = null;
localAudioTrack = null;
localRenderer = null;
localMediaStream = null; localMediaStream = null;
videoCapturer.dispose();
videoCapturer = null;
pipVideoView.release(); pipVideoView.release();
String credentials = ApiHelper.getCredentials(userEntity.getUsername(), userEntity.getToken()); String credentials = ApiHelper.getCredentials(userEntity.getUsername(), userEntity.getToken());