fixed orientation doesn't work
This commit is contained in:
parent
03568062a5
commit
f06520eebb
5 changed files with 9 additions and 3 deletions
|
@ -115,8 +115,8 @@
|
||||||
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
|
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
|
||||||
<uses-permission android:name="android.permission.BOOT_COMPLETED"></uses-permission>
|
<uses-permission android:name="android.permission.BOOT_COMPLETED"></uses-permission>
|
||||||
<uses-permission android:name="android.permission.VIBRATE"></uses-permission>
|
<uses-permission android:name="android.permission.VIBRATE"></uses-permission>
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.CAMERA" />
|
<uses-permission android:name="android.permission.CAMERA" />
|
||||||
|
|
||||||
<uses-feature android:name="android.hardware.camera" />
|
<uses-feature android:name="android.hardware.camera" />
|
||||||
<uses-feature android:name="android.hardware.camera.autofocus" />
|
<uses-feature android:name="android.hardware.camera.autofocus" />
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/video_frame" android:orientation="vertical"
|
android:id="@+id/video_frame"
|
||||||
android:layout_height="fill_parent" android:layout_width="fill_parent">
|
android:layout_height="fill_parent" android:layout_width="fill_parent">
|
||||||
|
|
||||||
<SurfaceView android:layout_height="fill_parent" android:layout_width="fill_parent" android:id="@+id/video_surface"></SurfaceView>
|
<SurfaceView android:layout_height="fill_parent" android:layout_width="fill_parent" android:id="@+id/video_surface"></SurfaceView>
|
||||||
|
|
|
@ -48,10 +48,16 @@ public class AndroidVideoWindowImpl {
|
||||||
}
|
}
|
||||||
if (mListener!=null)
|
if (mListener!=null)
|
||||||
mListener.onSurfaceDestroyed(AndroidVideoWindowImpl.this);
|
mListener.onSurfaceDestroyed(AndroidVideoWindowImpl.this);
|
||||||
Log.w("Linphone", "Video display surface destroyed");
|
Log.d("Linphone", "Video display surface destroyed");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
static final int LANDSCAPE=0;
|
||||||
|
static final int PORTRAIT=1;
|
||||||
|
public void requestOrientation(int orientation){
|
||||||
|
//Surface.setOrientation(0, orientation==LANDSCAPE ? 1 : 0);
|
||||||
|
//Log.d("Linphone", "Orientation changed.");
|
||||||
|
}
|
||||||
public void setListener(VideoWindowListener l){
|
public void setListener(VideoWindowListener l){
|
||||||
mListener=l;
|
mListener=l;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue