Skip to content

Commit f99c3bb

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

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
@@ -456,6 +456,9 @@ public void displayIncomingCall(String uuid, String number, String callerName, b
456456
if (payload != null) {
457457
extras.putBundle(EXTRA_PAYLOAD, payload);
458458
}
459+
if(hasVideo) {
460+
extras.putInt(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, VideoProfile.STATE_BIDIRECTIONAL);
461+
}
459462
this.listenToNativeCallsState();
460463
telecomManager.addNewIncomingCall(handle, extras);
461464
}

0 commit comments

Comments
 (0)