private void stop() { mLibVLC.stop(); mEventManager.removeHandler(mEventHandler); setRemoteControlClientPlaybackState(RemoteControlClient.PLAYSTATE_STOPPED); mCurrentMedia = null; mMediaList.clear(); mPrevious.clear(); mHandler.removeMessages(SHOW_PROGRESS); hideNotification(); executeUpdate(); changeAudioFocus(false); }
public void onStopPlayback() { Log.v(TAG, Logging.getCurrentMethodName()); mLatestCommand = FromLogicToPlayer.STOP; mLibVlcInstance.stop(); }