Android.Media.MediaPlayer.Create Method
Same factory method as MediaPlayer.Create(Android.Content.Context, Android.Net.Uri, Android.Net.Uri) but that lets you specify the audio attributes and session ID to be used by the new MediaPlayer instance.

Syntax

[Android.Runtime.Register("create", "(Landroid/content/Context;Landroid/net/Uri;Landroid/view/SurfaceHolder;Landroid/media/AudioAttributes;I)Landroid/media/MediaPlayer;", "")]
public static MediaPlayer Create (Android.Content.Context context, Android.Net.Uri uri, Android.Views.ISurfaceHolder holder, AudioAttributes audioAttributes, int audioSessionId)

Parameters

context
the Context to use
uri
the Uri from which to get the datasource
holder
the SurfaceHolder to use for displaying the video, may be null.
audioAttributes
the Android.Media.AudioAttributes to be used by the media player.
audioSessionId
the audio session ID to be used by the media player, see AudioManager.GenerateAudioSessionId to obtain a new session.

Returns

Documentation for this section has not yet been entered.

Remarks

Same factory method as MediaPlayer.Create(Android.Content.Context, Android.Net.Uri, Android.Net.Uri) but that lets you specify the audio attributes and session ID to be used by the new MediaPlayer instance.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1