Skip to content

[Bug]: MPV --audio-device shares the value with web player #1617

@OriginCode

Description

@OriginCode

I have already checked through the existing bug reports and found no duplicates

  • Yes

App Version

1.3.0

Music Server and Version

Navidrome 0.59.0

What local environments are you seeing the problem on?

Desktop Linux

What happened?

When switching from Web to MPV, the audioDeviceId gets copied over to the extra parameter --audio-device=${audioDeviceId}. This causes MPV failed to initialize audio in when the audio device selected in Web is "default", which "default" is not a valid output.

Image

Steps to reproduce

  1. Go to settings
  2. Choose Web audio player and output device to "Default"
  3. Switch back to MPV audio player

Relevant log output

`[AUDIO PLAYER] Attempting to initialize mpv with parameters: {"extraParameters":["--audio-device=default"],"properties":{"audio-exclusive":"no","gapless-audio":"weak","replaygain":"no","replaygain-clip":true,"replaygain-preamp":0,"speed":1,"volume":64}}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions