mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-21 20:45:29 +03:00
Cleanup
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
00eac7549e
commit
5ef965909a
1 changed files with 7 additions and 0 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue