【发布时间】:2014-03-31 10:41:11
【问题描述】:
我想将视频旋转 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
请帮帮我。
【问题讨论】:
标签: android