MediaMetadataRetriever

Class of android.media · MediaMetadataRetriever.java · Android's reference

public class MediaMetadataRetriever implements AutoCloseable

Media metadata: none is read.

Fields

public static final int METADATA_KEY_DURATION = 9 source
public static final int METADATA_KEY_MIMETYPE = 12 source
public static final int METADATA_KEY_VIDEO_WIDTH = 18 source
public static final int METADATA_KEY_VIDEO_HEIGHT = 19 source
public static final int OPTION_PREVIOUS_SYNC = 0 source
public static final int OPTION_NEXT_SYNC = 1 source
public static final int OPTION_CLOSEST_SYNC = 2 source
public static final int OPTION_CLOSEST = 3 source

Methods

public void setDataSource(String path) empty body source
public void setDataSource(android.content.Context context, android.net.Uri uri) empty body source
public void setDataSource(java.io.FileDescriptor fd) empty body source
public String extractMetadata(int keyCode) source
public android.graphics.Bitmap getFrameAtTime(long timeUs) source

No video decoder is here, so no frame can be taken.

public android.graphics.Bitmap getFrameAtTime(long timeUs, int option) source
public android.graphics.Bitmap getFrameAtTime() source
public android.graphics.Bitmap getScaledFrameAtTime(long timeUs, int option, int dstWidth, int dstHeight) source
public void close() empty body source
public void release() empty body source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.