Android.Media.MediaPlayer.PrepareAsync Method
Prepares the player for playback, asynchronously.

Syntax

[Android.Runtime.Register("prepareAsync", "()V", "GetPrepareAsyncHandler")]
public virtual void PrepareAsync ()

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif it is called in an invalid state

Remarks

Prepares the player for playback, asynchronously. After setting the datasource and the display surface, you need to either call prepare() or prepareAsync(). For streams, you should call prepareAsync(), which returns immediately, rather than blocking until enough data has been buffered.

[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