public void unregisterPlayerObserver(PlayerEventsObserver observer){
  playerEventsObservers.remove(observer);
  LogUtils.LOGD(TAG,"Unregistering observer. Still got " + playerEventsObservers.size() + " observers.");
  if (playerEventsObservers.isEmpty()) {
    if (connection.getProtocol() == HostConnection.PROTOCOL_TCP) {
      connection.unregisterPlayerNotificationsObserver(this);
      connection.unregisterSystemNotificationsObserver(this);
      connection.unregisterInputNotificationsObserver(this);
      checkerHandler.removeCallbacks(tcpCheckerRunnable);
    }
 else {
      checkerHandler.removeCallbacks(httpCheckerRunnable);
    }
    lastCallResult=PlayerEventsObserver.PLAYER_NO_RESULT;
  }
}

public void unregisterPlayerObserver ( PlayerEventsObserver observer ) { playerEventsObservers . remove ( observer ) ; LogUtils . LOGD ( TAG , "Unregistering observer. Still got " + playerEventsObservers . size ( ) + " observers." ) ; if ( playerEventsObservers . isEmpty ( ) ) { if ( connection . getProtocol ( ) == HostConnection . PROTOCOL_TCP ) { connection . unregisterPlayerNotificationsObserver ( this ) ; connection . unregisterSystemNotificationsObserver ( this ) ; connection . unregisterInputNotificationsObserver ( this ) ; checkerHandler . removeCallbacks ( tcpCheckerRunnable ) ; } else { checkerHandler . removeCallbacks ( httpCheckerRunnable ) ; } lastCallResult = PlayerEventsObserver . PLAYER_NO_RESULT ; } }
unregisters a previously registered observer
