Android.Media.MediaMetadataRetriever.GetFrameAtTime Method
Call this method after setDataSource().

Syntax

[Android.Runtime.Register("getFrameAtTime", "(JI)Landroid/graphics/Bitmap;", "GetGetFrameAtTime_JIHandler")]
public virtual Android.Graphics.Bitmap GetFrameAtTime (long p0, [Android.Runtime.GeneratedEnum] Option p1)

Parameters

timeUs
The time position where the frame will be retrieved. When retrieving the frame at the given time position, there is no guarantee that the data source has a frame located at the position. When this happens, a frame nearby will be returned. If timeUs is negative, time position and option will ignored, and any frame that the implementation considers as representative may be returned.
option
a hint on how the frame is found. Use MediaMetadataRetriever.OptionPreviousSync if one wants to retrieve a sync frame that has a timestamp earlier than or the same as timeUs. Use MediaMetadataRetriever.OptionNextSync if one wants to retrieve a sync frame that has a timestamp later than or the same as timeUs. Use MediaMetadataRetriever.OptionClosestSync if one wants to retrieve a sync frame that has a timestamp closest to or the same as timeUs. Use MediaMetadataRetriever.OptionClosest if one wants to retrieve a frame that may or may not be a sync frame but is closest to or the same as timeUs. MediaMetadataRetriever.OptionClosest often has larger performance overhead compared to the other options if there is no sync frame located at timeUs.

Returns

Documentation for this section has not yet been entered.

Remarks

Call this method after setDataSource(). This method finds a representative frame close to the given time position by considering the given option if possible, and returns it as a bitmap. This is useful for generating a thumbnail for an input data source or just obtain and display a frame at the given time position.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 10