diff --git a/src/org/linphone/LinphoneService.java b/src/org/linphone/LinphoneService.java index b1d5d6c96..9525fe105 100644 --- a/src/org/linphone/LinphoneService.java +++ b/src/org/linphone/LinphoneService.java @@ -215,6 +215,12 @@ public final class LinphoneService extends Service implements LinphoneServiceLis startActivity(new Intent() .setClass(this, LinphoneActivity.class) .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); + } else if (state == LinphoneCall.State.StreamsRunning) { + if (LinphoneActivity.isInstanciated() + && getResources().getBoolean(R.bool.use_video_activity) + && LinphoneManager.getLc().getCurrentCall().getCurrentParamsCopy().getVideoEnabled()) { + LinphoneActivity.instance().startVideoActivity(); + } } mHandler.post(new Runnable() { @@ -270,5 +276,9 @@ public final class LinphoneService extends Service implements LinphoneServiceLis } }); } + + public void onAlreadyInVideoCall() { + LinphoneActivity.instance().startVideoActivity(); + } }