Android.Media.MediaMetadataRetriever.SetDataSource Method
Sets the data source as a content Uri.

Syntax

[Android.Runtime.Register("setDataSource", "(Landroid/content/Context;Landroid/net/Uri;)V", "GetSetDataSource_Landroid_content_Context_Landroid_net_Uri_Handler")]
public virtual void SetDataSource (Android.Content.Context p0, Android.Net.Uri p1)

Parameters

context
the Context to use when resolving the Uri
uri
the Content URI of the data you want to play

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif the Uri is invalid
Java.Lang.SecurityExceptionif the Uri cannot be used due to lack of permission.

Remarks

Sets the data source as a content Uri. 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