mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-03 03:39:27 +00:00
Removed getter/setter to access video height/width directly.
This commit is contained in:
parent
df734bfc9e
commit
02ac3962b9
3 changed files with 6 additions and 6 deletions
|
|
@ -32,7 +32,7 @@ import android.view.SurfaceHolder.Callback;
|
|||
|
||||
|
||||
/**
|
||||
* Manage the video capture, only on for all cameras.
|
||||
* Manage the video capture, only one for all cameras.
|
||||
*
|
||||
* @author Guillaume Beraudo
|
||||
*
|
||||
|
|
@ -231,7 +231,7 @@ public class AndroidCameraRecordManager {
|
|||
VideoSize testSize = vSize.isPortrait() ? vSize.createInverted() : vSize;
|
||||
|
||||
for (Size s : AndroidCameraRecordManager.getInstance().supportedVideoSizes()) {
|
||||
if (s.height == testSize.getHeight() && s.width == testSize.getWidth()) {
|
||||
if (s.height == testSize.height && s.width == testSize.width) {
|
||||
return vSize;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -395,15 +395,15 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
}
|
||||
|
||||
public void setPreferredVideoSize(VideoSize vSize) {
|
||||
setPreferredVideoSize(nativePtr, vSize.getWidth(), vSize.getHeight());
|
||||
setPreferredVideoSize(nativePtr, vSize.width, vSize.height);
|
||||
}
|
||||
|
||||
public VideoSize getPreferredVideoSize() {
|
||||
int[] nativeSize = getPreferredVideoSize(nativePtr);
|
||||
|
||||
VideoSize vSize = new VideoSize();
|
||||
vSize.setWidth(nativeSize[0]);
|
||||
vSize.setHeight(nativeSize[1]);
|
||||
vSize.width = nativeSize[0];
|
||||
vSize.height = nativeSize[1];
|
||||
return vSize;
|
||||
}
|
||||
public void setRing(String path) {
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ public class TestVideoActivity extends Activity implements Callback, OnClickList
|
|||
}
|
||||
|
||||
VideoSize size = videoSizes.pop();
|
||||
changeSurfaceViewLayout(size.getWidth(), size.getHeight());
|
||||
changeSurfaceViewLayout(size.width, size.height);
|
||||
|
||||
// on surface changed the recorder will be restarted with new values
|
||||
// and the surface will be resized
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue