change sent video orientation when phone is rotated
This commit is contained in:
parent
7959015b49
commit
701d5ed6ea
5 changed files with 7 additions and 6 deletions
|
@ -121,6 +121,8 @@ public class CallManager {
|
|||
LinphoneCall lCall = lc.getCurrentCall();
|
||||
LinphoneCallParams params = lCall.getCurrentParamsCopy();
|
||||
bm().updateWithProfileSettings(lc, params);
|
||||
lc.updateCall(lCall, null);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -193,7 +193,6 @@ public class VideoCallActivity extends Activity {
|
|||
break;
|
||||
case R.id.videocall_menu_switch_camera:
|
||||
recordManager.stopVideoRecording();
|
||||
sendStaticImage(true);
|
||||
recordManager.toggleUseFrontCamera();
|
||||
CallManager.getInstance().updateCall();
|
||||
// camera will be restarted when mediastreamer chain is recreated and setParameters is called
|
||||
|
|
|
@ -382,7 +382,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
|
||||
public int updateCall(LinphoneCall call, LinphoneCallParams params) {
|
||||
long ptrCall = ((LinphoneCallImpl) call).nativePtr;
|
||||
long ptrParams = ((LinphoneCallParamsImpl)params).nativePtr;
|
||||
long ptrParams = params!=null ? ((LinphoneCallParamsImpl)params).nativePtr : 0;
|
||||
|
||||
return updateCall(nativePtr, ptrCall, ptrParams);
|
||||
}
|
||||
|
|
|
@ -27,8 +27,8 @@ import android.os.Build;
|
|||
public class Version {
|
||||
|
||||
private static final int buildVersion =
|
||||
// Integer.parseInt(Build.VERSION.SDK);
|
||||
7; // 2.1
|
||||
Integer.parseInt(Build.VERSION.SDK);
|
||||
// 7; // 2.1
|
||||
|
||||
public static final boolean sdkAbove(int value) {
|
||||
return buildVersion >= value;
|
||||
|
@ -38,4 +38,4 @@ public class Version {
|
|||
return buildVersion < value;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -1 +1 @@
|
|||
Subproject commit 4aaf103d0617a1dc74f5a8664b3ac45a5bcaf18d
|
||||
Subproject commit 8915b1ff3ee9fe40df4c0d1b2d794c443e83a1cc
|
Loading…
Reference in a new issue