更新时间:2023-09-21 23:01:46
There are two ways to understand your question:
Use the built-in VideoView. You might need to wrap the textView /imageView in an additional layout to push it to the front:
<VideoView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/videoView"
android:background="#00000000"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:orientation="horizontal">
<TextView
android:id="@+id/txt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Text"/>
</LinearLayout>
Update: As pointed out in this answer, the ExtractMpegFramesTest might be interesting for you