azlux / botamusique

Bot to play youtube / soundcloud / radio / local music on Mumble (using pymumble).
MIT License
313 stars 79 forks source link

Jellyfin feature? #249

Closed DataDropp closed 2 months ago

DataDropp commented 3 years ago

Is your feature request related to a problem? Please describe. The problem is that I can't have this hook into jellyfin. Describe the solution you'd like If this bot can stream from youtube, soundcloud, etc... It should be able to work with jellyfin aswell. Describe alternatives you've considered An alternative would be able to provide a 'streaming URL' which allows you to download it / stream a file from that URL. Additional context JellyFin is a self-hosted home media server, just like plex, but unlike plex, JellyFin IS open source.

TerryGeng commented 3 years ago

Hello, thanks for the advice.

We use FFmpeg to decode media stream and use youtube-dl to download media from websites. It sounds like the JellyFin integration will actually require some in-depth study of its API and there's no easy way of simple modification to get things working.

The good news is JellyFin's APIs are all HTTP based and this may ease some workload.

In general, it makes sense to let the bot directly communicate with different media libraries. It would be good to support different media libraries besides the native one we are using now. But based on the progress of the development of this little project, I think we are still far from this goal.

DataDropp commented 3 years ago

Thanks for your quick reply.

I understand that this will not be an easy feat. There is an already existing project that's a discord bot and hooks into JellyFin as a 'device' on JellyFin.

Using JellyFin's 'play-to' feature you can tell from the JellyFin interface to the mumble bot to start playing music from the JellyFin.

Here's a link to their repo, maybe it can be useful. https://github.com/KGT1/jellyfin-discord-music-bot

Although since that is Javascript and this project is python(mainly), I don't think it would be helpful.

TerryGeng commented 3 years ago

Thanks for this useful information.

I think the biggest barricade of this feature request is, neither azlux nor I am a user of JellyFin. I'm thinking of deploying a media sharing system but won't start very soon. Perhaps I will have a more detailed look by that time.