release

public void release()

Releases the player instance and associated resources.

Frees up system resources used by the player, such as media decoders or service connections. After calling this, the player instance should no longer be used.

Example usage:

SurfaceView surfaceView = findViewById(R.id.surface_view);
SandboxedPlayer player = new SandboxedPlayer(context, surfaceView);
player.loadVideoSource("http://example.com/video.mp4", null);
// When done:
player.release();