Properties

Volume

  • Description: Gets or sets the volume of the media player.

  • Type: float

  • Usage:

    MediaPlayer.Volume = 0.5f;
    float currentVolume = MediaPlayer.Volume;

RepeatMode

  • Description: Gets or sets the repeat mode of the media player.

  • Type: int

  • Usage:

    MediaPlayer.RepeatMode = 1; // Example value
    int repeatMode = MediaPlayer.RepeatMode;

ShuffleModeEnabled

  • Description: Gets or sets whether shuffle mode is enabled.

  • Type: bool

  • Usage:

    MediaPlayer.ShuffleModeEnabled = true;
    bool isShuffleEnabled = MediaPlayer.ShuffleModeEnabled;

IsPlaying

  • Description: Gets whether the media player is currently playing.

  • Type: bool

  • Usage:

IsLoading

  • Description: Gets whether the media player is currently loading media.

  • Type: bool

  • Usage:

IsReady

  • Description: Gets whether the media player is ready to play media.

  • Type: bool

  • Usage:

CurrentMediaItemIndex

  • Description: Gets the index of the current media item.

  • Type: int

  • Usage:

HasPreviousMediaItem

  • Description: Checks if there is a previous media item.

  • Type: bool

  • Usage:

HasNextMediaItem

  • Description: Checks if there is a next media item.

  • Type: bool

  • Usage:

BackgroundMode

  • Description: Gets or sets whether the media player operates in background mode.

  • Type: bool

  • Usage:

BackgroundControls

  • Description: Gets or sets whether background controls are enabled.

  • Type: bool

  • Usage:

LastMediaItemIndex

  • Description: Gets the index of the last played media item.

  • Type: int

  • Usage:

LastDuration

  • Description: Gets the duration of the last played media item.

  • Type: float

  • Usage:

LastPosition

  • Description: Gets the last position of the media player.

  • Type: float

  • Usage:

IsInitialized

  • Description: Indicates whether the media player is initialized.

  • Type: bool

  • Usage:

IsPlaylistLoading

  • Description: Indicates whether the playlist is currently loading.

  • Type: bool

  • Usage:

TempPlaylistIndex

  • Description: Gets or sets the temporary playlist index.

  • Type: int

  • Usage:

LastError

  • Description: Gets the current error message.

  • Type: string

  • Usage:

CurrentMediaItem

  • Description: Gets the current media item.

  • Type: MediaItem

  • Usage:

CurrentUriType

  • Description: Gets or sets the current URI type.

  • Type: UriType

  • Usage:

SeekIncrement

  • Description: Gets or sets the seek increment value.

  • Type: int

  • Usage:

PreBufferDuration

  • Description: Gets or sets the pre-buffer duration value.

  • Type: int

  • Usage:

ListenerId

  • Description: Gets or sets the listener ID.

  • Type: string

  • Usage:

BackgroundControlsEnabled

  • Description: Gets or sets whether background controls are enabled.

  • Type: bool

  • Usage:

BackgroundPlayEnabled

  • Description: Gets or sets whether background play is enabled.

  • Type: bool

  • Usage:

CurrentPlaylistIndex

  • Description: Gets or sets the current playlist index.

  • Type: int

  • Usage:

HasNextPlaylist

  • Description: Indicates whether there is a next playlist.

  • Type: bool

  • Usage:

HasPreviousPlaylist

  • Description: Indicates whether there is a previous playlist.

  • Type: bool

  • Usage:

Playlists

  • Description: Gets the collection of playlists.

  • Type: IReadOnlyDictionary<int, Playlist>

  • Usage:

CurrentPlaylist

  • Description: Gets the current playlist.

  • Type: Playlist

  • Usage:

Last updated