예제 #1
0
        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;
            }
        }
예제 #2
0
        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;
            }
        }
예제 #3
0
        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;
            }
        }
예제 #4
0
 protected virtual void OnPlayerHostStateChanged(PlayerHostState playerHostState)
 {
     CheckIsEnabled();
 }
예제 #5
0
        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;
            }
        }
예제 #6
0
 protected virtual void OnPlayerHostStateChanged(PlayerHostState playerHostState)
 {
     CheckIsEnabled();
 }