Reuse or remove a MediaPlayer instance
You can terminate a
MediaPlayer
instance in two ways.
Reset or reuse a MediaPlayer instance
Resetting a MediaPlayer instance returns it to its uninitialized state, which is called
IDLE
in
MediaPlayer.PlayerState
.
Release a MediaPlayer instance and resources
Release a MediaPlayer instance and resources when you no longer need the MediaResource.
Related concepts
About the MediaPlayerItem class
Lifecycle and states of the MediaPlayer object
Configure buffering
Related tasks
Inspect the playback timeline
Related reference
MediaPlayer methods for accessing MediaResource information