Description: The release() method of the MediaPlayer class in the android.media package is used to release all resources used by the media player object.
Code example:
MediaPlayer mediaPlayer = new MediaPlayer(); // set data source, prepare, start playing mediaPlayer.release();
This example creates a new MediaPlayer object, sets the data source, prepares the media player, starts playing and then releases all resources used by the media player object.
Package library: The package library used here is android.media.
Java MediaPlayer.release - 30 examples found. These are the top rated real world Java examples of android.media.MediaPlayer.release extracted from open source projects. You can rate examples to help us improve the quality of examples.