0
Android的VideoView是否有默认方式显示回放图标以及其视频的第一帧?回放第一帧视频缩略图的缩略图videoview
现在,我正在使用这样的布局。
<FrameLayout
android:id="@+id/video_frame"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#000">
<VideoView
android:id="@+id/mediaPlaybackView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:layout_centerInParent="true" />
<ImageButton
android:id="@+id/play_button"
android:layout_width="120dp"
android:layout_height="120dp"
android:adjustViewBounds="true"
android:padding="20dp"
android:scaleType="fitCenter"
android:background="@android:color/transparent"
android:layout_gravity="center_vertical|center_horizontal"
android:src="@drawable/videoicon" />
点击ImageButton可以播放视频。
检查了这一点 http://stackoverflow.com/questions/7037630/how-to-create-a-video-preview-in-android http://stackoverflow.com/questions/8235251/ issue-showing-thumbnail-image-in-videoview – vineetv