jeffvli / feishin

A modern self-hosted music player.
https://feishin.vercel.app
GNU General Public License v3.0
2.73k stars 114 forks source link

Unable to select an Audio Player #375

Closed daredoes closed 2 months ago

daredoes commented 11 months ago

Expected Behavior

When navigating to the playback page of the settings, the user is able to select MPV Player instead of Web Player

Current Behavior

An error message appears saying unable to load the audio devices

image

Steps to Reproduce

  1. Run the docker image on a NAS server like a Synology using Portainer
  2. Install MPV manually using apk add in a docker shell
  3. Go to the playback page for a server
  4. Error Message

Possible Solution (Not obligatory)

Add more documentation to configure this before the server first starts via a config file.

Context

I am trying to use Feishin to act as a JukeBox webpage where any user can trigger playback on it, and have the MPV Player control audio for the server which has the audio from mpv piped to Snapcast

Your Environment

kgarner7 commented 11 months ago

A couple of things:

  1. What browser are you using? This error message is happening because navigator.mediaDevices.enumerateDevices() is failing (this could be a bug, or a browser issue)
  2. Installing MPV in the Feishin container won't do anything. This is only possible on the desktop app; the DOcker image just serves a webpage (your web browser has no way to communicate with MPV).
  3. If you want a jukebox, I might recommend using the develop instance of Navidrome and using the Jukebox feature (a subsonic API feature).
gabhab commented 11 months ago
  1. If you want a jukebox, I might recommend using the develop instance of Navidrome and using the Jukebox feature (a subsonic API feature).

Probably a very stupid question, but: I just installed Feishin, and it seems great, but how do I actually control the Jukebox mode in Navidrome (which is now in the main branch) in Feishin?

kgarner7 commented 11 months ago

You need a client that actually supports jukebox controls (which is currently not Feishin).

gabhab commented 11 months ago

Ah, thanks! I misread point 3 as saying that Feishin supported jukebox. Thanks for clarifying. I hope it does at some point - it seems great otherwise.

kgarner7 commented 2 months ago

On desktop, this should be resolved by https://github.com/jeffvli/feishin/commit/af69a584183c2a08be1222bc7418fb898b8ac60a.