private void releaseResources() { if (player != null) { try { player.stop(); player.close(); } catch (Exception e) { } } }
private void closePlayer() { if (null != player) { try { player.stop(); } catch (Exception e) { } try { player.close(); } catch (Exception e) { } player = null; } }