我希望将视频旋转90度。
目前我已经旋转了布局,但是视频无法播放。 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 请帮帮我。