Skip to content

Native Audio 'spotatui' #282

@sewandev

Description

@sewandev

Hello!.

Image Image

Native streaming via librespot fails silently with an audio key error (error audio key 0 1) when attempting to play tracks. The app falls back to Spotify Connect (controlling the official Spotify client)
without notifying the user that native playback failed.

To Reproduce

  1. Enable native streaming in client.yml (enable_streaming: true)
  2. Run spotatui with --features streaming
  3. Press d to open device list — "spotatui" device appears
  4. Select "spotatui" as active device
  5. Play any track
  6. Audio plays through the official Spotify client instead of locally

Expected behavior
Audio should play locally through the machine running spotatui (native librespot playback), not through the Spotify Connect device.

Additional context
Running with RUST_LOG=debug reveals:
ERROR librespot_core::audio_key: error audio key 0 1
WARN librespot_playback::player: Unable to load key, continuing without decryption: Service unavailable { audio key error }
ERROR librespot_playback::player: Unable to read audio file: Symphonia Decoder Error: end of stream
The audio key request is explicitly rejected by Spotify's AP with error code 0x01. This occurs with both fresh OAuth credentials (AUTHENTICATION_SPOTIFY_TOKEN) and cached stored credentials (auth_type: 1).
Tested with SPOTIFY_PLAYER_CLIENT_ID = 65b708073fc0480ea92a077233ca87bd.

Desktop:

  • OS: Windows 10
  • Terminal: PowerShell
  • Version: latest (v0.38.6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions