muffon icon indicating copy to clipboard operation
muffon copied to clipboard

FR: Add support for local files and media servers like Subsonic

Open isle9 opened this issue 2 years ago • 6 comments

isle9 avatar Apr 13 '23 10:04 isle9

@isle9 Hello.

Local files support is suggested in #73. Could you describe this feature in details?

And what should Subsonic support look like? I personally don't have any experience with it.

staniel359 avatar Apr 13 '23 10:04 staniel359

Hello, I have tons of experience with Subsonic.

Subsonic API is quite simple. Docs: http://www.subsonic.org/pages/api.jsp

Basically, every single API request is authenicated by a MD5 salt + hash, and after that everything else is quite easy to implement.

TS implementation of the subsonic API I use in my music player (that's entierly Subsonic based): https://github.com/yourfriendoss/musicplayer2/blob/main/src/lib/subsonic.ts

fucksophie avatar May 31 '23 10:05 fucksophie

@yourfriendoss Hello. So basically you create your own local media server and can connect to it via API?

staniel359 avatar May 31 '23 13:05 staniel359

@yourfriendoss Hello. So basically you create your own local media server and can connect to it via API?

@staniel359 Yes! There are many servers and they all roughly support the same API with slight version differences, so you can create a local server on your laptop or your NAS for example, and just play music from your phone, PC, laptop, whatnot else.

Client implementations

  • https://github.com/BLeeEZ/amperfy
  • https://github.com/jeffvli/sonixd

Server implementations:

  • https://github.com/sentriz/gonic
  • https://airsonic.github.io/
  • https://www.navidrome.org/ (not actually based on Subsonic - however has compat with latest subsonic version)

Subsonic API currently has some disagreements, but if you can create a API library based on the latest subsonic version I don't think it'll change much.

Important discussion: https://support.symfonium.app/t/subsonic-servers-participation/1233

fucksophie avatar Jun 01 '23 05:06 fucksophie

@yourfriendoss Thank you. Okay, I'll work on it.

staniel359 avatar Jun 08 '23 09:06 staniel359