mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Capture preview is now dynamically resized to fit Linphonecore preferredVideoSize.
This commit is contained in:
parent
74096f25ba
commit
2961330867
2 changed files with 12 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ import android.view.SurfaceHolder.Callback;
|
|||
|
||||
|
||||
/**
|
||||
* Manage the video capture; one instance per camera.
|
||||
* Manage the video capture, only on for all cameras.
|
||||
*
|
||||
* @author Guillaume Beraudo
|
||||
*
|
||||
|
|
@ -81,6 +81,10 @@ public class AndroidCameraRecordManager {
|
|||
}
|
||||
}
|
||||
public boolean isUseFrontCamera() {return useFrontCamera;}
|
||||
public boolean toggleUseFrontCamera() {
|
||||
setUseFrontCamera(!useFrontCamera);
|
||||
return useFrontCamera;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
@ -132,13 +136,18 @@ public class AndroidCameraRecordManager {
|
|||
tryToStartVideoRecording();
|
||||
}
|
||||
}
|
||||
public void toggleMute() {
|
||||
public boolean toggleMute() {
|
||||
setMuted(!muted);
|
||||
return muted;
|
||||
}
|
||||
public boolean isMuted() {
|
||||
return muted;
|
||||
}
|
||||
|
||||
public void tryResumingVideoRecording() {
|
||||
if (isRecording()) return;
|
||||
tryToStartVideoRecording();
|
||||
}
|
||||
|
||||
private void tryToStartVideoRecording() {
|
||||
if (muted || surfaceView == null || parameters == null) return;
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
private native long[] listVideoPayloadTypes(long nativePtr);
|
||||
|
||||
|
||||
private static String TAG = "LinphoneCore";
|
||||
private static final String TAG = "LinphoneCore";
|
||||
|
||||
LinphoneCoreImpl(LinphoneCoreListener listener, File userConfig,File factoryConfig,Object userdata) throws IOException {
|
||||
mListener=listener;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue