MediaReadyState Enum

How much of a media resource is available to render the current playback position (https://html.spec.whatwg.org/multipage/media.html#ready-states). A MediaPlayer is created once the metadata is known, so its state is at least MediaReadyState.HaveMetadata.

public enum MediaReadyState

Fields

NameValueDescription
HaveNothing0No information about the media resource is available (HAVE_NOTHING).
HaveMetadata1The duration and the dimensions are available, but no data for the current playback position (HAVE_METADATA).
HaveCurrentData2The data for the current playback position is available, but not enough to advance (HAVE_CURRENT_DATA).
HaveFutureData3The data for the current playback position and for at least a little more is available (HAVE_FUTURE_DATA).
HaveEnoughData4Enough data is available to play the resource to its end without stopping (HAVE_ENOUGH_DATA).