mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 04:55:29 +03:00
Fixes
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
3a9ebd16c3
commit
24811f0088
1 changed files with 5 additions and 7 deletions
|
@ -382,7 +382,7 @@ public class CallActivity extends AppCompatActivity {
|
|||
ApiHelper.getUrlForCallPing(userEntity.getBaseUrl(), roomToken))
|
||||
.subscribeOn(Schedulers.newThread())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.repeatWhen(observable -> observable.delay(5000, TimeUnit.MILLISECONDS))
|
||||
.repeatWhen(completed -> completed.delay(5000, TimeUnit.MILLISECONDS))
|
||||
.repeatUntil(booleanSupplier)
|
||||
.retry(3)
|
||||
.subscribe(new Observer<GenericOverall>() {
|
||||
|
@ -412,8 +412,9 @@ public class CallActivity extends AppCompatActivity {
|
|||
userEntity.getToken()), ApiHelper.getUrlForSignaling(userEntity.getBaseUrl()))
|
||||
.subscribeOn(Schedulers.newThread())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.repeatWhen(observable -> observable.delay(1500, TimeUnit
|
||||
.MILLISECONDS))
|
||||
//.repeatWhen(observable -> observable.delay(1500, TimeUnit
|
||||
// .MILLISECONDS))
|
||||
.repeatWhen(completed -> completed)
|
||||
.repeatUntil(booleanSupplier)
|
||||
.retry(3)
|
||||
.subscribe(new Observer<SignalingOverall>() {
|
||||
|
@ -501,6 +502,7 @@ public class CallActivity extends AppCompatActivity {
|
|||
switch (type) {
|
||||
case "offer":
|
||||
case "answer":
|
||||
Log.d("MARIO GOT ", type + " " + ncSignalingMessage.getFrom());
|
||||
magicPeerConnectionWrapper.setNick(ncSignalingMessage.getPayload().getNick());
|
||||
magicPeerConnectionWrapper.getPeerConnection().setRemoteDescription(magicPeerConnectionWrapper
|
||||
.getMagicSdpObserver(), new SessionDescription(SessionDescription.Type.fromCanonicalForm(type),
|
||||
|
@ -611,10 +613,6 @@ public class CallActivity extends AppCompatActivity {
|
|||
|
||||
}
|
||||
|
||||
for (MagicPeerConnectionWrapper magicPeerConnectionWrapper : magicPeerConnectionWrapperList) {
|
||||
endPeerConnection(magicPeerConnectionWrapper.getSessionId());
|
||||
}
|
||||
|
||||
if (videoCapturer != null) {
|
||||
videoCapturer.dispose();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue