Android.Media.MediaPlayer.Prepare Method
Prepares the player for playback, synchronously.

Syntax

[Android.Runtime.Register("prepare", "()V", "GetPrepareHandler")]
public virtual void Prepare ()

Exceptions

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

Remarks

Prepares the player for playback, synchronously. After setting the datasource and the display surface, you need to either call prepare() or prepareAsync(). For files, it is OK to call prepare(), which blocks until MediaPlayer is ready for playback.

[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