protected override void OnPlayerHostStateChanged(PlayerHostState playerHostState) { base.OnPlayerHostStateChanged(playerHostState); switch (playerHostState) { case PlayerHostState.On: Connect(); break; case PlayerHostState.StandBy: // disconn av break; case PlayerHostState.Off: Disconnect(); break; } }
protected override void OnPlayerHostStateChanged(PlayerHostState playerHostState) { base.OnPlayerHostStateChanged(playerHostState); switch (playerHostState) { case PlayerHostState.On: if (!connected) { Reconnect(); } break; case PlayerHostState.StandBy: //SendCommand("MJ"); // disconn av break; case PlayerHostState.Off: //SendCommand("VX"); // power off ool //SendCommand("MH"); // disable auto conn //SendCommand("CD"); // disconn hfp break; } }
protected virtual void OnPlayerHostStateChanged(PlayerHostState playerHostState) { CheckIsEnabled(); }