Aracılığıyla paylaş


MediaMetadataRetriever Class

Definition

MediaMetadataRetriever class provides a unified interface for retrieving frame and meta data from an input media file.

[Android.Runtime.Register("android/media/MediaMetadataRetriever", DoNotGenerateAcw=true)]
public class MediaMetadataRetriever : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.Lang.IAutoCloseable
[<Android.Runtime.Register("android/media/MediaMetadataRetriever", DoNotGenerateAcw=true)>]
type MediaMetadataRetriever = class
    inherit Object
    interface IAutoCloseable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
MediaMetadataRetriever
Attributes
Implements

Remarks

MediaMetadataRetriever class provides a unified interface for retrieving frame and meta data from an input media file.

Java documentation for android.media.MediaMetadataRetriever.

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.

Constructors

MediaMetadataRetriever()
MediaMetadataRetriever(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

MetadataKeyAlbum
Obsolete.

The metadata key to retrieve the information about the album title of the data source.

MetadataKeyAlbumartist
Obsolete.

The metadata key to retrieve the information about the performers or artist associated with the data source.

MetadataKeyArtist
Obsolete.

The metadata key to retrieve the information about the artist of the data source.

MetadataKeyAuthor
Obsolete.

The metadata key to retrieve the information about the author of the data source.

MetadataKeyBitrate
Obsolete.

This key retrieves the average bitrate (in bits/sec), if available.

MetadataKeyBitsPerSample
Obsolete.

This key retrieves the bits per sample in numbers of bits, if available.

MetadataKeyCaptureFramerate
Obsolete.

This key retrieves the original capture framerate, if it's available.

MetadataKeyCdTrackNumber
Obsolete.

The metadata key to retrieve the numeric string describing the order of the audio data source on its original recording.

MetadataKeyColorRange
Obsolete.

This key retrieves the color range, if available.

MetadataKeyColorStandard
Obsolete.

This key retrieves the color standard, if available.

MetadataKeyColorTransfer
Obsolete.

This key retrieves the color transfer, if available.

MetadataKeyCompilation
Obsolete.

The metadata key to retrieve the music album compilation status.

MetadataKeyComposer
Obsolete.

The metadata key to retrieve the information about the composer of the data source.

MetadataKeyDate
Obsolete.

The metadata key to retrieve the date when the data source was created or modified.

MetadataKeyDiscNumber
Obsolete.

The metadata key to retrieve the numberic string that describes which part of a set the audio data source comes from.

MetadataKeyDuration
Obsolete.

The metadata key to retrieve the playback duration (in ms) of the data source.

MetadataKeyExifLength
Obsolete.

If the media contains EXIF data, this key retrieves the length (in bytes) of the data.

MetadataKeyExifOffset
Obsolete.

If the media contains EXIF data, this key retrieves the offset (in bytes) of the data.

MetadataKeyGenre
Obsolete.

The metadata key to retrieve the content type or genre of the data source.

MetadataKeyHasAudio
Obsolete.

If this key exists the media contains audio content.

MetadataKeyHasImage
Obsolete.

If this key exists the media contains still image content.

MetadataKeyHasVideo
Obsolete.

If this key exists the media contains video content.

MetadataKeyImageCount
Obsolete.

If the media contains still images, this key retrieves the number of still images.

MetadataKeyImageHeight
Obsolete.

If the media contains still images, this key retrieves the height of the primary image.

MetadataKeyImagePrimary
Obsolete.

If the media contains still images, this key retrieves the image index of the primary image.

MetadataKeyImageRotation
Obsolete.

If the media contains still images, this key retrieves the rotation angle (in degrees clockwise) of the primary image.

MetadataKeyImageWidth
Obsolete.

If the media contains still images, this key retrieves the width of the primary image.

MetadataKeyLocation
Obsolete.

This key retrieves the location information, if available.

MetadataKeyMimetype
Obsolete.

The metadata key to retrieve the mime type of the data source.

MetadataKeyNumTracks
Obsolete.

The metadata key to retrieve the number of tracks, such as audio, video, text, in the data source, such as a mp4 or 3gpp file.

MetadataKeySamplerate
Obsolete.

This key retrieves the sample rate in Hz, if available.

MetadataKeyTitle
Obsolete.

The metadata key to retrieve the data source title.

MetadataKeyVideoFrameCount
Obsolete.

If the media contains video and this key exists, it retrieves the total number of frames in the video sequence.

MetadataKeyVideoHeight
Obsolete.

If the media contains video, this key retrieves its height.

MetadataKeyVideoRotation
Obsolete.

This key retrieves the video rotation angle in degrees, if available.

MetadataKeyVideoWidth
Obsolete.

If the media contains video, this key retrieves its width.

MetadataKeyWriter
Obsolete.

The metadata key to retrieve the information of the writer (such as lyricist) of the data source.

MetadataKeyXmpLength
Obsolete.

If the media contains XMP data, this key retrieves the length (in bytes) of the data.

MetadataKeyXmpOffset
Obsolete.

If the media contains XMP data, this key retrieves the offset (in bytes) of the data.

MetadataKeyYear
Obsolete.

The metadata key to retrieve the year when the data source was created or modified.

OptionClosest
Obsolete.

This option is used with #getFrameAtTime(long, int) to retrieve a frame (not necessarily a key frame) associated with a data source that is located closest to or at the given time.

OptionClosestSync
Obsolete.

This option is used with #getFrameAtTime(long, int) to retrieve a sync (or key) frame associated with a data source that is located closest to (in time) or at the given time.

OptionNextSync
Obsolete.

This option is used with #getFrameAtTime(long, int) to retrieve a sync (or key) frame associated with a data source that is located right after or at the given time.

OptionPreviousSync
Obsolete.

This option is used with #getFrameAtTime(long, int) to retrieve a sync (or key) frame associated with a data source that is located right before or at the given time.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
FrameAtTime

Call this method after setDataSource().

Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
PrimaryImage

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

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Close()

Releases any acquired resources.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
ExtractMetadata(Int32)
ExtractMetadata(MetadataKey)

Call this method after setDataSource().

GetEmbeddedPicture()

Call this method after setDataSource().

GetFrameAtIndex(Int32, MediaMetadataRetriever+BitmapParams)

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

GetFrameAtIndex(Int32)

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

GetFrameAtTime(Int64, Int32)
GetFrameAtTime(Int64, Option, MediaMetadataRetriever+BitmapParams)

Call this method after setDataSource().

GetFrameAtTime(Int64, Option)

This method is similar to #getFrameAtTime(long, int, BitmapParams) except that the device will choose the actual Bitmap.Config to use.

GetFrameAtTime(Int64)

Call this method after setDataSource().

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.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetImageAtIndex(Int32, MediaMetadataRetriever+BitmapParams)

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

GetImageAtIndex(Int32)

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

GetPrimaryImage(MediaMetadataRetriever+BitmapParams)

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

GetScaledFrameAtTime(Int64, Option, Int32, Int32, MediaMetadataRetriever+BitmapParams)

This method is similar to #getScaledFrameAtTime(long, int, int, int, BitmapParams) except that the device will choose the actual Bitmap.Config to use.

GetScaledFrameAtTime(Int64, Option, Int32, Int32)

This method is similar to #getScaledFrameAtTime(long, int, int, int, BitmapParams) except that the device will choose the actual Bitmap.Config to use.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
Release()

Releases any acquired resources.

SetDataSource(Context, Uri)

Sets the data source as a content Uri.

SetDataSource(FileDescriptor, Int64, Int64)

Sets the data source (FileDescriptor) to use.

SetDataSource(FileDescriptor)

Sets the data source (FileDescriptor) to use.

SetDataSource(MediaDataSource)

Sets the data source (MediaDataSource) to use.

SetDataSource(String, IDictionary<String,String>)

Sets the data source (URI) to use.

SetDataSource(String)

Sets the data source (file pathname) to use.

SetDataSourceAsync(Context, Uri)
SetDataSourceAsync(FileDescriptor, Int64, Int64)
SetDataSourceAsync(FileDescriptor)
SetDataSourceAsync(MediaDataSource)
SetDataSourceAsync(String, IDictionary<String,String>)
SetDataSourceAsync(String)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to