Posts: 1
Joined: Aug 2017
Reputation:
0
Marcel,
Great work on the Addon, it was my missing piece!
Im running a RPI3, Libreelec 8.1.0 beta with Kodi 17.4
Local playback works perfect. I ran into a funny thing using connect.
Thru Kodi I can handle the playback on my phone, but not the other way around.
Is it even possible to control the playback on the rpi via my phone?
For now I have a solution for it. I've started local playback and control my playlist using Yatse remote for android.
Thnx for this great piece of art!!!
Posts: 70
Joined: Mar 2011
Reputation:
0
Anyone know why I can't login, as mentioned earlier? The log file say nothing. It won't accept my premium credentials.
Posts: 64
Joined: Nov 2012
Reputation:
1
Hi
Thank you for all the hard work with this addon.
I am having a mixed success with the plugin here. LibreElec running Kodi 17.3 on Intel I3 hardware.
I am able to play my selection from the Internet, I am able to Spotify connect from my Iphone to the default user..., no other device will connect or even see the LibreElec Kodi box.
When playing through Spotify connect tracks will repeat two or more times before playing next one.
What streaming quality is being used during music play ?
Posts: 46
Joined: May 2013
Reputation:
0
2017-09-02, 06:42
(This post was last modified: 2017-09-03, 12:50 by Klattsy.)
Edit - all good, nuked it all and started fresh Kodi install, all good now. Having issues with connect though. Do you need to be on same wifi or just same network? Raspberry Pi is hard wired, phone is on router wifi. The TV screen
Shows what is playing on phone but audio still comes through phone.
Posts: 8
Joined: Apr 2017
Reputation:
0
In addition: This is what my KODI log says:
18:11:36.554 T:1720132528 WARNING: plugin.audio.spotify --> Exception in utils ! --> [Errno 1] Operation not permitted: '/home/pi/.kodi/addons/plugin.audio.spotify/resources/lib/spotty/arm-linux/spotty-muslhf'
18:11:36.650 T:1720132528 WARNING: plugin.audio.spotify --> Exception in utils ! --> [Errno 1] Operation not permitted: '/home/pi/.kodi/addons/plugin.audio.spotify/resources/lib/spotty/arm-linux/spotty-hf'
18:11:36.661 T:1720132528 WARNING: plugin.audio.spotify --> Exception in utils ! --> [Errno 1] Operation not permitted: '/home/pi/.kodi/addons/plugin.audio.spotify/resources/lib/spotty/x86-linux/spotty'
18:13:29.289 T:1946059424 ERROR: CPythonInvoker(3, /home/pi/.kodi/addons/plugin.audio.spotify/service.py): script didn't stop in 5 seconds - let's kill it
Posts: 8,283
Joined: Jul 2014
(2017-08-24, 19:08)Vr4nckuh Wrote: Thru Kodi I can handle the playback on my phone, but not the other way around.
Is it even possible to control the playback on the rpi via my phone?
In the add-on settings you can enable the experimental Spotify Connect feature which will allow you to control the playback from your phone.
You should see the Kodi player as an available Spotify Connect target. Remember that for now I've disabled discovery so the Connect target will only show on devices logged in with the same user account as the Kodi add-on.
Posts: 8,283
Joined: Jul 2014
(2017-08-27, 23:33)zilexa Wrote: Would it be an idea to create a "Light" version of your add-on that only adds Spotify Connect feature, purely receiving audio, perhaps only showing the title or that playback is happening?
I used this solution and it was fantastic. I didn't even turn my TV on. The Raspberry is always on and connected to my received via HDMI so I could always play music any time. Unfortunately this solution requires a Spotify Dev key and Spotify stopped providing them.
I'm not interested in creating that, that would require me to maintain another add-on while the browse features do not require any overhead if you don't use it. I believe there already is such an add-on for libreelec if you only seek a spotify connect player.
Posts: 8,283
Joined: Jul 2014
(2017-08-31, 19:10)petou Wrote: My setup is based on openhab and i use http request with json to control my kodi. I already have a lot of command working and i wish to extend it to this spotify plug-in.
The thing i want the most is to play playlist or artist by json command. For example, here's the command for opening a youtube video:
Code:
http://login:[email protected]:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"file":"plugin://plugin.video.youtube/play/?video_id=wQP9XZc2Y_c"}},"id":"1"}
you replace the video_id with yours and voilà! the video is playing via the youtube plugin.
i tried similar json for spotify but it didn't work. So i wish to know if you have worked on something for your alexa that i could use in my setup?
Try this:
Code:
http://login:[email protected]:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"file":"plugin://plugin.audio.spotify/?action=connect_playback&playlistid=SPOTIFYPLAYLISTID&ownerid=SPOTIFYOWNERID&offset=0"}},"id":"1"}
That way you should be able to start the playback of a playlist. You should be able to grab the playlistID and the ownerID from the spotify URI
Posts: 8,283
Joined: Jul 2014
(2017-09-01, 20:22)inittux Wrote: @marcelveldt
Great addon, works great! Just a question the zip in the git repo hasn't been updated for a while. Will there be any updates?
Thank you for your work on this addon!
Yes there will but I'm a bit busy with private life atm and I also have to maintain a bunch of other Kodi addons ;-)
Posts: 8,283
Joined: Jul 2014
(2017-09-02, 06:42)Klattsy Wrote: Edit - all good, nuked it all and started fresh Kodi install, all good now. Having issues with connect though. Do you need to be on same wifi or just same network? Raspberry Pi is hard wired, phone is on router wifi. The TV screen
Shows what is playing on phone but audio still comes through phone.
The Kodi spotify add-on has to be logged in with the same account as the device you want to connect with it. At this time I have disabled discovery as it was clashing with the Kodi builtin Bonjour/Zeroconf. Once I figure out how to fix that, I'll enable the discovery feature again.
Posts: 8,283
Joined: Jul 2014
(2017-09-03, 16:25)LuzZz Wrote: How did You manage to log-in? Are You running Kodi in a X environment?
I am running my Raspberry with a CLI + Kodi.
When I run Spotify Addon for the first time it displays an announcement: "default browser will be opened to log-in".
Sounds like you're running the old version of the add-on which is no longer supported.
Install my repo and install the latest beta version, see first post for details.