You should release a MediaPlayer instance and resources when you no longer need the MediaResource.
When you release a
MediaPlayer object, the underlying hardware resources that are associated with this
MediaPlayer object are deallocated.
Here are some reasons to release a
MediaPlayer instance is released, you can no longer use it. If any method of the
MediaPlayer interface is called after it is released, an
IllegalStateException is thrown.