mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 21:58:08 +00:00
Fix non existing Android API calls from old sdk.
This commit is contained in:
parent
3b88d0c151
commit
4284ff4dc9
3 changed files with 5 additions and 5 deletions
|
|
@ -35,7 +35,7 @@ import android.util.Log;
|
|||
* @author Guillaume Beraudo
|
||||
*
|
||||
*/
|
||||
class AndroidCameraRecordImpl extends AndroidCameraRecord implements PreviewCallback {
|
||||
class AndroidCameraRecord5 extends AndroidCameraRecord implements PreviewCallback {
|
||||
|
||||
private long filterCtxPtr;
|
||||
private double timeElapsedBetweenFrames = 0;
|
||||
|
|
@ -44,7 +44,7 @@ class AndroidCameraRecordImpl extends AndroidCameraRecord implements PreviewCall
|
|||
protected final int rotation;
|
||||
private MirrorType mirror;
|
||||
|
||||
public AndroidCameraRecordImpl(RecorderParams parameters) {
|
||||
public AndroidCameraRecord5(RecorderParams parameters) {
|
||||
super(parameters);
|
||||
expectedTimeBetweenFrames = 1d / Math.round(parameters.fps);
|
||||
filterCtxPtr = parameters.filterDataNativePtr;
|
||||
|
|
@ -30,7 +30,7 @@ import android.util.Log;
|
|||
* @author Guillaume Beraudo
|
||||
*
|
||||
*/
|
||||
class AndroidCameraRecord8 extends AndroidCameraRecordImpl {
|
||||
class AndroidCameraRecord8 extends AndroidCameraRecord5 {
|
||||
|
||||
|
||||
public AndroidCameraRecord8(RecorderParams parameters) {
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ public class AndroidCameraRecordManager {
|
|||
} else if (Version.sdkAboveOrEqual(8)) {
|
||||
recorder = new AndroidCameraRecord8(parameters);
|
||||
} else if (Version.sdkAboveOrEqual(5)) {
|
||||
recorder = new AndroidCameraRecordImpl(parameters);
|
||||
recorder = new AndroidCameraRecord5(parameters);
|
||||
} else {
|
||||
throw new RuntimeException("SDK version unsupported " + Version.sdk());
|
||||
}
|
||||
|
|
@ -228,7 +228,7 @@ public class AndroidCameraRecordManager {
|
|||
}
|
||||
|
||||
if (Version.sdkAboveOrEqual(5)) {
|
||||
supportedVideoSizes = AndroidCameraRecordImpl.oneShotSupportedVideoSizes();
|
||||
supportedVideoSizes = AndroidCameraRecord5.oneShotSupportedVideoSizes();
|
||||
}
|
||||
|
||||
// eventually null
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue