Skip to content

Commit 385f609

Browse files
committed
Update RNCallKeepModule.java
1 parent 205a1bf commit 385f609

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,9 @@ public void startCall(String uuid, String number, String callerName, boolean has
509509

510510
extras.putParcelable(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, handle);
511511
extras.putParcelable(TelecomManager.EXTRA_OUTGOING_CALL_EXTRAS, callExtras);
512+
if(hasVideo) {
513+
extras.putInt(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, VideoProfile.STATE_BIDIRECTIONAL);
514+
}
512515

513516
Log.d(TAG, "[RNCallKeepModule] startCall, uuid: " + uuid);
514517
this.listenToNativeCallsState();

0 commit comments

Comments
 (0)