Android.Media.AsyncPlayer.Play Method
Start playing the sound.

Syntax

[Android.Runtime.Register("play", "(Landroid/content/Context;Landroid/net/Uri;ZI)V", "GetPlay_Landroid_content_Context_Landroid_net_Uri_ZIHandler")]
public virtual void Play (Android.Content.Context context, Android.Net.Uri uri, bool looping, [Android.Runtime.GeneratedEnum] Stream stream)

Parameters

context
Your application's context.
uri
The URI to play. (see MediaPlayer.SetDataSource(Android.Content.Context, Android.Net.Uri))
looping
Whether the audio should loop forever. (see MediaPlayer.Looping)
stream
the AudioStream to use. (see MediaPlayer.SetAudioStreamType(Stream))

Remarks

Start playing the sound. It will actually start playing at some point in the future. There are no guarantees about latency here. Calling this before another audio file is done playing will stop that one and start the new one.

[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