public void destroy(){
  if (mIsClosed) {
    return;
  }
  if (mState != STATE_STOPPED) {
    mDestroyDelayed=true;
    return;
  }
  mIsClosed=true;
  PlaybackService.unregisterListener(getContext(),mInternalListener);
  mInternalListener=null;
  mApplicationContext.clear();
  mApplicationContext=null;
  mClientKey=null;
  mPlayerPlaylist=null;
  mCheerleaderPlayerListeners.clear();
}

public void destroy ( ) { if ( mIsClosed ) { return ; } if ( mState != STATE_STOPPED ) { mDestroyDelayed = true ; return ; } mIsClosed = true ; PlaybackService . unregisterListener ( getContext ( ) , mInternalListener ) ; mInternalListener = null ; mApplicationContext . clear ( ) ; mApplicationContext = null ; mClientKey = null ; mPlayerPlaylist = null ; mCheerleaderPlayerListeners . clear ( ) ; }
release resources associated with the player .
