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

Syntax

[Android.Runtime.Register("setDataSource", "(Ljava/lang/String;)V", "GetSetDataSource_Ljava_lang_String_Handler")]
public virtual void SetDataSource (string p0)

Parameters

path
The path of the input media file.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionIf the path is invalid.

Remarks

Sets the data source (file pathname) to use. 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