Release a MediaPlayer instance and resources when you
no longer need the MediaResource.
Releasing
a
MediaPlayer object deallocates the underlying hardware
resources associated with this
MediaPlayer object.
Release a
MediaPlayer when it is no longer useful.
For several reasons, it is good practice to do this:
After the MediaPlayer instance is
released, you can no longer use it. Calling any method of the MediaPlayer interface
after it is released results in an IllegalStateException being thrown.