mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
Implemented request offer
This commit is contained in:
parent
b0e85e7d4f
commit
c69472cc39
@ -1458,7 +1458,11 @@ public class CallController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (String sessionId : newSessions) {
|
for (String sessionId : newSessions) {
|
||||||
alwaysGetPeerConnectionWrapperForSessionId(sessionId);
|
if (!hasMCU) {
|
||||||
|
alwaysGetPeerConnectionWrapperForSessionId(sessionId);
|
||||||
|
} else {
|
||||||
|
webSocketClient.requestOfferForSessionIdWithType(sessionId, "video");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String sessionId : oldSesssions) {
|
for (String sessionId : oldSesssions) {
|
||||||
|
@ -224,4 +224,12 @@ public class MagicWebSocketInstance extends WebSocketListener {
|
|||||||
concurrentHashMapQueue.remove(id);
|
concurrentHashMapQueue.remove(id);
|
||||||
return copyJob;
|
return copyJob;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void requestOfferForSessionIdWithType(String sessionId, String roomType) {
|
||||||
|
try {
|
||||||
|
webSocket.send(LoganSquare.serialize(webSocketConnectionHelper.getAssembledRequestOfferModel(sessionId, roomType)));
|
||||||
|
} catch (IOException e) {
|
||||||
|
Log.e(TAG, "Failed to offer request");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user