namidaco / namida

A Beautiful and Feature-rich Music & Video Player with Youtube Support, Built in Flutter
Other
2.09k stars 127 forks source link

Feature Request - Namida API #27

Open CaptainKarma opened 11 months ago

CaptainKarma commented 11 months ago

Could you consider adding support for plugins to interact with Namida.

Plugins can then reach out to various music services with the now playing track data and look for similar tracks services such as Spotify, MixCloud, LastFM, MusicMap and the plugin to respond with a track for Namida to play next.

Simple API that covers; ) Number of tracks in the playing queue and position of playing track in the queue (to determine if playing the last track in the queue) ) On a track change, Namida calls a plugins find function and passes the full file path of the playing track and metadata album, artist, track metadata (as a JSON payload?) ) Inbound request from the plugin, receive a track to play, either filepath or artist/album/track as optional metadata and Namida to add this to the end of the now playing queue

MSOB7YY commented 11 months ago

Could you elaborate more on what is the ideal use cases for this? I can see it can be useful for bringing related tracks, but I have some concerns:

btw, current track info is already exposed to the media session, apps can intercept it and get information out of it (check Pano Scrobbler, which scrobbles playing track to lastfm)

lastly, exposing the api wouldn't be any hard, but those concerns need to be resolved first