Posts: 6
Threads: 1
Joined: Nov 2024
Reputation:
0
Hello Forum!
I've got a little question regarding playing Music from a Spotify Playlist. I know of the Spotify Connect Option, to essentially turn the MoOdeAudioPlayer into a "Spotify-Only" "UPnP Player", however it seems that this is only possible if there is a Device running Spotify, and is on the same Network, or the Network can somehow Route the two devices together as if it was a singular Network. As far as i understand, MoOdeAudio is using librespot to appear as a Spotify Client, and according to librespot, librespot should also be able to Login to Spotify on its own, and start playing a Song/Playlist directly from Spotify, without a Device needing to tell it to do so.
My Question is, is there a way to Link a Spotify Account into a Player, or to fetch Music from a Spotify Playlist, that is semi-integrated into MoodeAudio?
I am willing to use the Terminal, and i do know my way around it relatively well.
My only real requirement for "integrated" is that itll start playing the last selected Playlist automatically (and also know about newly added or removed songs in that playlist) once everything is booted up and ready.
Thanks in advance!
Posts: 1,301
Threads: 24
Joined: Jun 2022
Reputation:
42
(11-26-2024, 06:19 PM)TheCustomFHD Wrote: librespot should also be able to Login to Spotify on its own, and start playing a Song/Playlist directly from Spotify, without a Device needing to tell it to do so. Actually, your phone, when you select moOde as the spotify endpoint, IS telling librespot WHAT to play.
Your phone, then, is not part of the equation any more; as librespot will get the stream from Spotify.
Posts: 13,492
Threads: 305
Joined: Mar 2018
Reputation:
545
(11-26-2024, 06:19 PM)TheCustomFHD Wrote: Hello Forum!
I've got a little question regarding playing Music from a Spotify Playlist. I know of the Spotify Connect Option, to essentially turn the MoOdeAudioPlayer into a "Spotify-Only" "UPnP Player", however it seems that this is only possible if there is a Device running Spotify, and is on the same Network, or the Network can somehow Route the two devices together as if it was a singular Network. As far as i understand, MoOdeAudio is using librespot to appear as a Spotify Client, and according to librespot, librespot should also be able to Login to Spotify on its own, and start playing a Song/Playlist directly from Spotify, without a Device needing to tell it to do so.
My Question is, is there a way to Link a Spotify Account into a Player, or to fetch Music from a Spotify Playlist, that is semi-integrated into MoodeAudio?
I am willing to use the Terminal, and i do know my way around it relatively well.
My only real requirement for "integrated" is that itll start playing the last selected Playlist automatically (and also know about newly added or removed songs in that playlist) once everything is booted up and ready.
Thanks in advance!
Where dd you get this information?
"and according to librespot, librespot should also be able to Login to Spotify on its own, and start playing a Song/Playlist directly from Spotify, without a Device needing to tell it to do so."
Posts: 6
Threads: 1
Joined: Nov 2024
Reputation:
0
11-27-2024, 09:59 AM
(This post was last modified: 11-27-2024, 10:05 AM by TheCustomFHD.
Edit Reason: Small Typo Fix
)
(11-26-2024, 07:34 PM)Tim Curtis Wrote: (11-26-2024, 06:19 PM)TheCustomFHD Wrote: Hello Forum!
I've got a little question regarding playing Music from a Spotify Playlist. I know of the Spotify Connect Option, to essentially turn the MoOdeAudioPlayer into a "Spotify-Only" "UPnP Player", however it seems that this is only possible if there is a Device running Spotify, and is on the same Network, or the Network can somehow Route the two devices together as if it was a singular Network. As far as i understand, MoOdeAudio is using librespot to appear as a Spotify Client, and according to librespot, librespot should also be able to Login to Spotify on its own, and start playing a Song/Playlist directly from Spotify, without a Device needing to tell it to do so.
My Question is, is there a way to Link a Spotify Account into a Player, or to fetch Music from a Spotify Playlist, that is semi-integrated into MoodeAudio?
I am willing to use the Terminal, and i do know my way around it relatively well.
My only real requirement for "integrated" is that itll start playing the last selected Playlist automatically (and also know about newly added or removed songs in that playlist) once everything is booted up and ready.
Thanks in advance!
Where dd you get this information?
"and according to librespot, librespot should also be able to Login to Spotify on its own, and start playing a Song/Playlist directly from Spotify, without a Device needing to tell it to do so." On its github page:
https://github.com/librespot-org/librespot
"librespot is an open source client for Spotify. It enables applications to use Spotify's service to control and play music via various backends, and to act as a Spotify Connect reciever."
This wording sounds as if one can use librespot to start streaming music from the Terminal or even theoretically from within MoOdeAudio, and not just use it as a Spotify Connect Reciever.
Optimally, it would be possible to Login to Spotify within MoOdeAudio, and then select a Spotify Playlist, which then should be played.
Posts: 6
Threads: 1
Joined: Nov 2024
Reputation:
0
(11-26-2024, 06:57 PM)Nutul Wrote: (11-26-2024, 06:19 PM)TheCustomFHD Wrote: librespot should also be able to Login to Spotify on its own, and start playing a Song/Playlist directly from Spotify, without a Device needing to tell it to do so. Actually, your phone, when you select moOde as the spotify endpoint, IS telling librespot WHAT to play.
Your phone, then, is not part of the equation any more; as librespot will get the stream from Spotify. Thats cool to know, that its only once needed to start the Playback. However, i assume after a reboot, you would need to start playback again? Id like to avoid that.
Posts: 6
Threads: 1
Joined: Nov 2024
Reputation:
0
Another thing ive noticed, Spotify-TUI uses spotifyd, which uses librespot.. So that should prove that this should be possible, and already is mostly done, no?
I might be missing or missunderstanding something, if so, please do tell me. Thank you!
Posts: 1,301
Threads: 24
Joined: Jun 2022
Reputation:
42
(11-27-2024, 10:11 AM)TheCustomFHD Wrote: I might be missing or missunderstanding something
Indeed, you are.
Since Spotify is available on a myriad of devices (your phone included) there is no need to reinvent hot water...
Just play on your phone/tablet/computer/smart tv, transfer to moOde within a couple of seconds, and voilà.
About the playback resume after a reboot... do you reboot in the middle of an audio session...? Anyway, I do not think this is possible/available; may others jump in an elaborate.
Posts: 41
Threads: 6
Joined: Sep 2018
Reputation:
0
Of course you could Just Uwe the Spotify web Apis... You will find Guides via Google.
This is the official documentation as a starting Point: https://developer.spotify.com/documentat...s-playback
I think you should be able to connect to your moode and start a Playlist via this way.
Or you use Something Like node Red, who hast Most Apis already available (but you get Lots of Overhead that you do Not need). See https://nerdiy.de/en/howto-nodered-contr...m-nodered/
Posts: 6
Threads: 1
Joined: Nov 2024
Reputation:
0
(11-27-2024, 08:22 PM)Nutul Wrote: (11-27-2024, 10:11 AM)TheCustomFHD Wrote: I might be missing or missunderstanding something
Indeed, you are.
Since Spotify is available on a myriad of devices (your phone included) there is no need to reinvent hot water...
Just play on your phone/tablet/computer/smart tv, transfer to moOde within a couple of seconds, and voilà.
About the playback resume after a reboot... do you reboot in the middle of an audio session...? Anyway, I do not think this is possible/available; may others jump in an elaborate.
This is not an option for me, due to the Player being completely headless. All it gotta do is start playing on power up, and start shuffling a playlist. The Audio Session is gonna be every Day, for about 16 hours, upon which itll shut down/get a power cut, and get powered in 8 hours again. I suppose its kinda like a shop-music system? Atleast thats the closest thing in functionality wise that i can imagine.
Posts: 6
Threads: 1
Joined: Nov 2024
Reputation:
0
(11-27-2024, 11:28 PM)abrakadabra2k Wrote: Of course you could Just Uwe the Spotify web Apis... You will find Guides via Google.
This is the official documentation as a starting Point: https://developer.spotify.com/documentat...s-playback
I think you should be able to connect to your moode and start a Playlist via this way.
Or you use Something Like node Red, who hast Most Apis already available (but you get Lots of Overhead that you do Not need). See https://nerdiy.de/en/howto-nodered-contr...m-nodered/
This seems promising, thank you for pointing me into this direction, ill take a look into it.
|