Capture preview is now dynamically resized to fit Linphonecore preferredVideoSize.

This commit is contained in:
Guillaume Beraudo 2010-12-09 22:52:27 +01:00
parent 74096f25ba
commit 2961330867
2 changed files with 12 additions and 3 deletions

View file

@ -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;

View file

@ -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;