Exemplo n.º 1
0
    private void OnProgressSliderMouseUp(BaseEventData arg0)
    {
        if (_progressStartDrag && _progressDragNewValue > 0)
        {
            SpotifyClient client = SpotifyService.Instance.GetSpotifyClient();

            // Build request to set new ms position
            PlayerSeekToRequest request = new PlayerSeekToRequest((long)_progressDragNewValue);
            client.Player.SeekTo(request);

            // Set value in slider
            _currentProgressSlider.value = _progressDragNewValue;

            // Reset variables
            _progressStartDrag    = false;
            _progressDragNewValue = -1.0f;
        }
    }
Exemplo n.º 2
0
 Task <bool> IPlayerClient.SeekTo(PlayerSeekToRequest request)
 => throw new NotImplementedException();