Methods
Some of these can be outdated.
Initialize
Description: Initializes the media player with a single media item.
Usage:
Initialize (Playlist)
Description: Initializes the media player with a playlist.
Usage:
Initialize (Multiple Playlists)
Description: Initializes the media player with multiple playlists.
Usage:
SetPlaylist
Description: Sets the current playlist by index.
Usage:
Play
Description: Starts media playback.
Usage:
Play (With Media Item Index)
Description: Starts playback of a specific media item by index.
Usage:
Stop
Description: Stops media playback.
Usage:
FadeIn
Description: Gradually increases the volume over the specified duration.
Usage:
FadeOut
Description: Gradually decreases the volume over the specified duration.
Usage:
SetBackgroundControls
Description: Enables or disables background controls.
Usage:
SetBackgroundMode
Description: Enables or disables background mode.
Usage:
Release
Description: Releases the media player resources.
Usage:
Pause
Description: Pauses media playback.
Usage:
Previous
Description: Plays the previous media item.
Usage:
Next
Description: Plays the next media item.
Usage:
FastForward
Description: Fast forwards the current media item.
Usage:
Rewind
Description: Rewinds the current media item.
Usage:
SeekTo
Description: Seeks to a specific time in the current media item.
Usage:
GetDuration
Description: Gets the duration of the current media item.
Usage:
GetCurrentPosition
Description: Gets the current playback position.
Usage:
GetShuffleOrder
Description: Gets the shuffle order of the current playlist.
Usage:
AddMediaItem
Description: Adds a media item to the current playlist.
Usage:
RemoveMediaItem
Description: Removes a media item from the current playlist.
Usage:
Play (Media Item)
Description: Plays a specified media item.
Usage:
PlayRemoteUrl
Description: Plays a media item from a remote URL.
Usage:
PlayStreamingAsset
Description: Plays a media item from the StreamingAssets folder.
Usage:
SetPlaybackSpeed
Description: Sets the playback speed of the media player.
Usage:
AddPlaylist
Description: Adds a playlist to the collection.
Returns:
int
(Index of the added playlist)Usage:
SetPlaylists
Description: Sets the collection of playlists.
Usage:
GetPlaylist
Description: Gets a playlist by its index.
Returns:
Playlist
Usage:
GetMediaItem
Description: Gets a media item by its index and optionally by playlist index.
Returns:
MediaItem
Usage:
SetPlaylistUpdated
Description: Sets the current playlist index and indicates that the playlist is no longer loading.
Usage:
Play
Description: Starts media playback.
Usage:
Play (With Media Item Index)
Description: Starts playback of a specific media item by index.
Usage:
Stop
Description: Stops media playback.
Usage:
FadeIn
Description: Gradually increases the volume over the specified duration.
Usage:
FadeOut
Description: Gradually decreases the volume over the specified duration.
Usage:
SetBackgroundControls
Description: Enables or disables background controls.
Usage:
SetBackgroundMode
Description: Enables or disables background mode.
Usage:
Release
Description: Releases the media player resources.
Usage:
Pause
Description: Pauses media playback.
Usage:
Previous
Description: Plays the previous media item.
Usage:
Next
Description: Plays the next media item.
Usage:
HasPreviousMediaItem
Description: Checks if there is a previous media item.
Usage:
HasNextMediaItem
Description: Checks if there is a next media item.
Usage:
FastForward
Description: Fast forwards the current media item.
Usage:
Rewind
Description: Rewinds the current media item.
Usage:
SeekTo
Description: Seeks to a specific time in the current media item.
Usage:
GetDuration
Description: Gets the duration of the current media item.
Usage:
GetCurrentPosition
Description: Gets the current playback position.
Usage:
GetShuffleOrder
Description: Gets the shuffle order of the current playlist.
Usage:
AddMediaItem
Description: Adds a media item to the current playlist.
Usage:
RemoveMediaItem
Description: Removes a media item from the current playlist.
Usage:
Play (Media Item)
Description: Plays a specified media item.
Usage:
PlayRemoteUrl
Description: Plays a media item from a remote URL.
Usage:
PlayStreamingAsset
Description: Plays a media item from the StreamingAssets folder.
Usage:
SetPlaybackSpeed
Description: Sets the playback speed of the media player.
Usage:
Last updated