如何让视频文件在Android的框架视频文件、框架、Android

2023-09-12 08:21:41 作者:诸多诱惑

我想获得一个视频文件的框架在Android的画廊视图来显示。以及如何编辑框架,例如:

I want to get the frames of a video file to show in a gallery view in android. and how to edit frames, for example

选择框部

使用选定的部分。

删除选定的部分。

复制选定的部分。

切割选定的部分。

粘贴到头部

粘贴到尾部

推荐答案

您可以使用类MediaMetadataRetriever类。它有getFrameAt()方法,其中,你可以指定你想要得到的帧的时间。

You can use the MediaMetadataRetriever class. It has getFrameAt() method wherein you can specify the time of the frame that you want to get.

有关详细信息,请参阅类MediaMetadataRetriever

For details refer to MediaMetadataRetriever