mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-27 17:08:34 +03:00
Implemented request offer
This commit is contained in:
parent
b0e85e7d4f
commit
c69472cc39
2 changed files with 13 additions and 1 deletions
|
@ -1458,7 +1458,11 @@ public class CallController extends BaseController {
|
|||
}
|
||||
|
||||
for (String sessionId : newSessions) {
|
||||
if (!hasMCU) {
|
||||
alwaysGetPeerConnectionWrapperForSessionId(sessionId);
|
||||
} else {
|
||||
webSocketClient.requestOfferForSessionIdWithType(sessionId, "video");
|
||||
}
|
||||
}
|
||||
|
||||
for (String sessionId : oldSesssions) {
|
||||
|
|
|
@ -224,4 +224,12 @@ public class MagicWebSocketInstance extends WebSocketListener {
|
|||
concurrentHashMapQueue.remove(id);
|
||||
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 a new issue