MediaMetadataRetriever.GetFramesAtIndex 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetFramesAtIndex(Int32, Int32) |
此方法类似于 |
GetFramesAtIndex(Int32, Int32, MediaMetadataRetriever+BitmapParams) |
此方法类似于 |
GetFramesAtIndex(Int32, Int32)
此方法类似于 #getFramesAtIndex(int, int, BitmapParams)
使用默认值 BitmapParams
。
[Android.Runtime.Register("getFramesAtIndex", "(II)Ljava/util/List;", "GetGetFramesAtIndex_IIHandler", ApiSince=28)]
public virtual System.Collections.Generic.IList<Android.Graphics.Bitmap> GetFramesAtIndex (int frameIndex, int numFrames);
[<Android.Runtime.Register("getFramesAtIndex", "(II)Ljava/util/List;", "GetGetFramesAtIndex_IIHandler", ApiSince=28)>]
abstract member GetFramesAtIndex : int * int -> System.Collections.Generic.IList<Android.Graphics.Bitmap>
override this.GetFramesAtIndex : int * int -> System.Collections.Generic.IList<Android.Graphics.Bitmap>
参数
- frameIndex
- Int32
要检索的第一个视频帧的基于 0 的索引。 帧索引必须是有效帧的索引。 可以通过密钥查询 #METADATA_KEY_VIDEO_FRAME_COUNT
可用于检索的帧总数。
- numFrames
- Int32
要检索的连续视频帧数。 必须是正值。 流必须至少包含从 frameIndex 开始的 numFrames 帧。
返回
包含所请求的视频帧的位图列表。 如果检索失败,返回的数组可能包含的帧数可能小于所请求的帧。
- 属性
注解
此方法类似于 #getFramesAtIndex(int, int, BitmapParams)
使用默认值 BitmapParams
。
适用于 . 的 android.media.MediaMetadataRetriever.getFramesAtIndex(int, int)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
GetFramesAtIndex(Int32, Int32, MediaMetadataRetriever+BitmapParams)
此方法类似于 #getFramesAtIndex(int, int, BitmapParams)
使用默认值 BitmapParams
。
[Android.Runtime.Register("getFramesAtIndex", "(IILandroid/media/MediaMetadataRetriever$BitmapParams;)Ljava/util/List;", "GetGetFramesAtIndex_IILandroid_media_MediaMetadataRetriever_BitmapParams_Handler", ApiSince=28)]
public virtual System.Collections.Generic.IList<Android.Graphics.Bitmap> GetFramesAtIndex (int frameIndex, int numFrames, Android.Media.MediaMetadataRetriever.BitmapParams params);
[<Android.Runtime.Register("getFramesAtIndex", "(IILandroid/media/MediaMetadataRetriever$BitmapParams;)Ljava/util/List;", "GetGetFramesAtIndex_IILandroid_media_MediaMetadataRetriever_BitmapParams_Handler", ApiSince=28)>]
abstract member GetFramesAtIndex : int * int * Android.Media.MediaMetadataRetriever.BitmapParams -> System.Collections.Generic.IList<Android.Graphics.Bitmap>
override this.GetFramesAtIndex : int * int * Android.Media.MediaMetadataRetriever.BitmapParams -> System.Collections.Generic.IList<Android.Graphics.Bitmap>
参数
- frameIndex
- Int32
要检索的第一个视频帧的基于 0 的索引。 帧索引必须是有效帧的索引。 可以通过密钥查询 #METADATA_KEY_VIDEO_FRAME_COUNT
可用于检索的帧总数。
- numFrames
- Int32
要检索的连续视频帧数。 必须是正值。 流必须至少包含从 frameIndex 开始的 numFrames 帧。
返回
包含所请求的视频帧的位图列表。 如果检索失败,返回的数组可能包含的帧数可能小于所请求的帧。
- 属性
注解
适用于 . 的 android.media.MediaMetadataRetriever.getFramesAtIndex(int, int)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。