Fix delay when resuming videoCall
This commit is contained in:
parent
74cbe2b71c
commit
cfbfbb717d
2 changed files with 11 additions and 11 deletions
|
@ -38,6 +38,7 @@
|
|||
<activity android:name="org.linphone.LinphoneActivity"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@android:style/Theme.NoTitleBar"
|
||||
android:screenOrientation="landscape"
|
||||
android:launchMode="singleTask"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize"
|
||||
> <!-- android:alwaysRetainTaskState="true" clearTaskOnLaunch="false"-->
|
||||
|
|
|
@ -29,7 +29,6 @@ import org.linphone.mediastream.Version;
|
|||
import org.linphone.mediastream.video.AndroidVideoWindowImpl;
|
||||
import org.linphone.mediastream.video.capture.hwconf.AndroidCameraConfiguration;
|
||||
import org.linphone.ui.Numpad;
|
||||
import org.linphone.ui.ToggleImageButton;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
|
@ -119,8 +118,7 @@ public class VideoCallActivity extends Activity implements LinphoneOnCallStateCh
|
|||
|
||||
public void onVideoPreviewSurfaceDestroyed(AndroidVideoWindowImpl vw) {
|
||||
// Remove references kept in jni code and restart camera
|
||||
// LinphoneManager.getLc().setPreviewWindow(null);
|
||||
// Commented to remove flicker.
|
||||
LinphoneManager.getLc().setPreviewWindow(null);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -158,18 +156,19 @@ public class VideoCallActivity extends Activity implements LinphoneOnCallStateCh
|
|||
}
|
||||
});
|
||||
|
||||
((ToggleImageButton) findViewById(R.id.toggleSpeaker)).setChecked(LinphoneManager.getLc().isSpeakerEnabled());
|
||||
|
||||
if (!AndroidCameraConfiguration.hasSeveralCameras()) {
|
||||
findViewById(R.id.switch_camera).setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
if (Version.isXLargeScreen(this))
|
||||
{
|
||||
findViewById(R.id.toggleMuteMic).setOnClickListener(this);
|
||||
findViewById(R.id.incallNumpadShow).setOnClickListener(this);
|
||||
findViewById(R.id.incallHang).setOnClickListener(this);
|
||||
findViewById(R.id.switch_camera).setOnClickListener(this);
|
||||
findViewById(R.id.conf_simple_pause).setOnClickListener(this);
|
||||
findViewById(R.id.conf_simple_video).setOnClickListener(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue