Add support for Incoming / Outgoing Video Type.

This commit is contained in:
Alex Hart
2020-11-05 13:41:22 -04:00
committed by GitHub
parent 9f882d2fbb
commit 2b4a4d6109
10 changed files with 70 additions and 33 deletions

View File

@@ -108,7 +108,7 @@ public class IncomingCallActionProcessor extends DeviceAwareActionProcessor {
Log.i(TAG, "handleAcceptCall(): call_id: " + activePeer.getCallId());
DatabaseFactory.getSmsDatabase(context).insertReceivedCall(activePeer.getId());
DatabaseFactory.getSmsDatabase(context).insertReceivedCall(activePeer.getId(), currentState.getCallSetupState().isRemoteVideoOffer());
currentState = currentState.builder()
.changeCallSetupState()

View File

@@ -76,7 +76,7 @@ public class OutgoingCallActionProcessor extends DeviceAwareActionProcessor {
webRtcInteractor.setCallInProgressNotification(TYPE_OUTGOING_RINGING, remotePeer);
DatabaseFactory.getSmsDatabase(context).insertOutgoingCall(remotePeer.getId());
DatabaseFactory.getSmsDatabase(context).insertOutgoingCall(remotePeer.getId(), currentState.getCallSetupState().isEnableVideoOnCreate());
webRtcInteractor.retrieveTurnServers(remotePeer);