Android.Media.MediaMetadataRetriever.SetDataSource Method
Sets the data source (FileDescriptor) to use.

Syntax

[Android.Runtime.Register("setDataSource", "(Ljava/io/FileDescriptor;JJ)V", "GetSetDataSource_Ljava_io_FileDescriptor_JJHandler")]
public virtual void SetDataSource (Java.IO.FileDescriptor p0, long p1, long p2)

Parameters

fd
the FileDescriptor for the file you want to play
offset
the offset into the file where the data to be played starts, in bytes. It must be non-negative
length
the length in bytes of the data to be played. It must be non-negative.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif the arguments are invalid

Remarks

Sets the data source (FileDescriptor) to use. It is the caller's responsibility to close the file descriptor. It is safe to do so as soon as this call returns. Call this method before the rest of the methods in this class. This method may be time-consuming.

[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