Ejemplo n.º 1
0
        public async Task TurnOffShuffleRepeat(string token, CurrentPlaybackContext info)
        {
            // turn off shuffle and repeat
            if (info.ShuffleState)
            {
                await _player.Shuffle(false, accessToken : token);

                //await _player.Shuffle(false, accessToken: token, deviceId: info.Device.Id);
            }

            if (info.RepeatState != RepeatStates.Off)
            {
                await _player.Repeat(RepeatStates.Off, accessToken : token);

                //await _player.Repeat(RepeatStates.Off, accessToken: token, deviceId: info.Device.Id);
            }
        }