MediaMetadataRetriever 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", ApiSince=10, DoNotGenerateAcw=true)]
public class MediaMetadataRetriever : Java.Lang.Object
type MediaMetadataRetriever = class
    inherit Object
Inheritance
MediaMetadataRetrieverMediaMetadataRetriever
Attributes

Remarks

Android platform documentation

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()
MediaMetadataRetriever(IntPtr, JniHandleOwnership) MediaMetadataRetriever(IntPtr, JniHandleOwnership)

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

Fields

MetadataKeyAlbum MetadataKeyAlbum

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

MetadataKeyAlbumartist MetadataKeyAlbumartist

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

MetadataKeyArtist MetadataKeyArtist

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

MetadataKeyAuthor MetadataKeyAuthor

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

MetadataKeyBitrate MetadataKeyBitrate

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

MetadataKeyCaptureFramerate MetadataKeyCaptureFramerate
MetadataKeyCdTrackNumber MetadataKeyCdTrackNumber

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

MetadataKeyCompilation MetadataKeyCompilation

The metadata key to retrieve the music album compilation status.

MetadataKeyComposer MetadataKeyComposer

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

MetadataKeyDate MetadataKeyDate

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

MetadataKeyDiscNumber MetadataKeyDiscNumber

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

MetadataKeyDuration MetadataKeyDuration

The metadata key to retrieve the playback duration of the data source.

MetadataKeyGenre MetadataKeyGenre

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

MetadataKeyHasAudio MetadataKeyHasAudio

If this key exists the media contains audio content.

MetadataKeyHasVideo MetadataKeyHasVideo

If this key exists the media contains video content.

MetadataKeyLocation MetadataKeyLocation

This key retrieves the location information, if available.

MetadataKeyMimetype MetadataKeyMimetype

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

MetadataKeyNumTracks MetadataKeyNumTracks

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.

MetadataKeyTitle MetadataKeyTitle

The metadata key to retrieve the data source title.

MetadataKeyVideoHeight MetadataKeyVideoHeight

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

MetadataKeyVideoRotation MetadataKeyVideoRotation

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

MetadataKeyVideoWidth MetadataKeyVideoWidth

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

MetadataKeyWriter MetadataKeyWriter

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

MetadataKeyYear MetadataKeyYear

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

OptionClosest OptionClosest

This option is used with GetFrameAtTime(Int64, Option) 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 OptionClosestSync

This option is used with GetFrameAtTime(Int64, Option) 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 OptionNextSync

This option is used with GetFrameAtTime(Int64, Option) to retrieve a sync (or key) frame associated with a data source that is located right after or at the given time.

OptionPreviousSync OptionPreviousSync

This option is used with GetFrameAtTime(Int64, Option) to retrieve a sync (or key) frame associated with a data source that is located right before or at the given time.

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
FrameAtTime FrameAtTime

Call this method after setDataSource().

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
PeerReference PeerReference Inherited from Object
ThresholdClass ThresholdClass

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

ThresholdType ThresholdType

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

Methods

Clone() Clone()

Creates and returns a copy of this Object.

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

Compares this instance with the specified object and indicates if they are equal.

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

Call this method after setDataSource().

GetEmbeddedPicture() GetEmbeddedPicture()

Call this method after setDataSource().

GetFrameAtTime(Int64) GetFrameAtTime(Int64)

Call this method after setDataSource().

GetFrameAtTime(Int64, Int32) GetFrameAtTime(Int64, Int32)
GetFrameAtTime(Int64, Option) GetFrameAtTime(Int64, Option)

Call this method after setDataSource().

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetScaledFrameAtTime(Int64, Option, Int32, Int32) GetScaledFrameAtTime(Int64, Option, Int32, Int32)
JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
Release() Release()

Call it when one is done with the object.

SetDataSource(Context, Uri) SetDataSource(Context, Uri)

Sets the data source as a content Uri.

SetDataSource(FileDescriptor) SetDataSource(FileDescriptor)

Sets the data source (FileDescriptor) to use.

SetDataSource(FileDescriptor, Int64, Int64) SetDataSource(FileDescriptor, Int64, Int64)

Sets the data source (FileDescriptor) to use.

SetDataSource(MediaDataSource) SetDataSource(MediaDataSource)
SetDataSource(String) SetDataSource(String)

Sets the data source (file pathname) to use.

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

Sets the Handle property.

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

Returns a string containing a concise, human-readable description of this object.

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

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

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

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to