Udostępnij za pośrednictwem


MediaMetadataRetriever.GetFramesAtIndex Method

Definition

Overloads

GetFramesAtIndex(Int32, Int32)

This method is similar to #getFramesAtIndex(int, int, BitmapParams) except that the default for BitmapParams will be used.

GetFramesAtIndex(Int32, Int32, MediaMetadataRetriever+BitmapParams)

This method is similar to #getFramesAtIndex(int, int, BitmapParams) except that the default for BitmapParams will be used.

GetFramesAtIndex(Int32, Int32)

This method is similar to #getFramesAtIndex(int, int, BitmapParams) except that the default for BitmapParams will be used.

[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>

Parameters

frameIndex
Int32

0-based index of the first video frame to retrieve. The frame index must be that of a valid frame. The total number of frames available for retrieval can be queried via the #METADATA_KEY_VIDEO_FRAME_COUNT key.

numFrames
Int32

number of consecutive video frames to retrieve. Must be a positive value. The stream must contain at least numFrames frames starting at frameIndex.

Returns

An list of Bitmaps containing the requested video frames. The returned array could contain less frames than requested if the retrieval fails.

Attributes

Remarks

This method is similar to #getFramesAtIndex(int, int, BitmapParams) except that the default for BitmapParams will be used.

Java documentation for android.media.MediaMetadataRetriever.getFramesAtIndex(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetFramesAtIndex(Int32, Int32, MediaMetadataRetriever+BitmapParams)

This method is similar to #getFramesAtIndex(int, int, BitmapParams) except that the default for BitmapParams will be used.

[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>

Parameters

frameIndex
Int32

0-based index of the first video frame to retrieve. The frame index must be that of a valid frame. The total number of frames available for retrieval can be queried via the #METADATA_KEY_VIDEO_FRAME_COUNT key.

numFrames
Int32

number of consecutive video frames to retrieve. Must be a positive value. The stream must contain at least numFrames frames starting at frameIndex.

Returns

An list of Bitmaps containing the requested video frames. The returned array could contain less frames than requested if the retrieval fails.

Attributes

Remarks

Java documentation for android.media.MediaMetadataRetriever.getFramesAtIndex(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to