Android.Media.MediaPlayer.Create Method
Same factory method as MediaPlayer.Create(Android.Content.Context, System.Int32) 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;ILandroid/media/AudioAttributes;I)Landroid/media/MediaPlayer;", "")]
public static MediaPlayer Create (Android.Content.Context context, int resid, AudioAttributes audioAttributes, int audioSessionId)

Parameters

context
the Context to use
resid
the raw resource id (R.raw.<something>) for the resource to use as the datasource
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, System.Int32) 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