Dela via


MediaMetadataRetriever.FrameAtTime Property

Definition

Call this method after setDataSource().

public virtual Android.Graphics.Bitmap? FrameAtTime { [Android.Runtime.Register("getFrameAtTime", "()Landroid/graphics/Bitmap;", "GetGetFrameAtTimeHandler")] get; }
[<get: Android.Runtime.Register("getFrameAtTime", "()Landroid/graphics/Bitmap;", "GetGetFrameAtTimeHandler")>]
member this.FrameAtTime : Android.Graphics.Bitmap

Property Value

A Bitmap containing a representative video frame, which can be null, if such a frame cannot be retrieved.

Attributes

Remarks

Call this method after setDataSource(). This method finds a representative frame at any time position if possible, and returns it as a bitmap. Call this method if one does not care about where the frame is located; otherwise, please call #getFrameAtTime(long) or #getFrameAtTime(long, int)

If you don't need a full-resolution frame (for example, because you need a thumbnail image), use #getScaledFrameAtTime getScaledFrameAtTime() instead of this method.

Java documentation for android.media.MediaMetadataRetriever.getFrameAtTime().

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

See also

  • GetFrameAtTime(Int64)
  • <xref:Android.Media.MediaMetadataRetriever.GetFrameAtTime(System.Int64%2c+Android.Media.Option)>