我想90度旋转视频。视频视图旋转90度在Android
当前我旋转布局但视频无法播放。 XML
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:rotation="90" >
<VideoView
android:id="@+id/videoView"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>
的Java
videoView = (VideoView) findViewById(R.id.videoView);
final Uri videoUri = Uri.parse(
Environment.getExternalStorageDirectory().getAbsolutePath()+"/UnoPlayList/restaurant_menu_pro_mkv.mkv");
videoView.setVideoPath(Environment.getExternalStorageDirectory().getAbsolutePath()+"/UnoPlayList/restaurant_menu_pro_mkv.mkv");
//videoView.setRotation(180);
// videoView.setVideoURI(videoUri);
videoView.start();
有什么办法来旋转视频。
例如: https://play.google.com/store/apps/details?id=com.mycall.videorotate&hl=en
请帮助我。
检查了这一点的videoview:http://stackoverflow.com/questions/8586526/rotating-an-android-videoview – Dunken