Is this mmal thing something raspberry specific? How does your addon work then on aarch64 systems like the official 64bit C2 builds? Is mmal mandatory for it, also in the future?

Good that we know the issue now

ffmpegx (which streams librespot output to RTP) uses project specific hardware acceleration support, such as mmal. Using ffmpegx built for a project (RPi2/arm) on another project (Odroid_C2/arm) might therefore not work.

I will see if I can add features required by librespot (native PCM transcoding and RTP) to ffmpeg provided by LibreELEC, but that will be for LibreELEC 9.0.

In the meantime, a solution is to build the addon (or ffmpegx) for Odroid_C2/arm.

I will have to refresh my addons repo for LE8. I'm unable to test Spotify. I'm currently focusing on LE9. Are those new features merged at LE already? If it was merged lately I might not had the chance to pull and build it yet.

My Addons are built natively for the platform, so infinity85 should use my rb-leia builds for C2 and install those Addons from my repo. But please report all issue to me.

Mixing RPi addons with C2 will not work in this case cause it's linked against libmmal which is not used by C2 nor necessary to build.

I will have to refresh my addons repo for LE8. I'm unable to test Spotify. I'm currently focusing on LE9. Are those new features merged at LE already? If it was merged lately I might not had the chance to pull and build it yet.

My Addons are built natively for the platform, so infinity85 should use my rb-leia builds for C2 and install those Addons from my repo. But please report all issue to me.

Mixing RPi addons with C2 will not work in this case cause it's linked against libmmal which is not used by C2 nor necessary to build.

Since GDPR-1 released a new LE build, the kodi-output option finally started working

Now I see what the aim was, to include this function:

Ability to control Spotify through KODI Interface

This was unclear for me and that's why I asked twice why you included this function (didn't know your itention)

However there are some issues I'd like to mention and to get explained, if possible:

(Using KODI output instead of ALSA:) After choosing [email protected] in my Android Spotify app the connection seems to have trouble getting established. It is mostly done successfully after the second attempt.

The librespot service seems to crash after one track and [email protected] device disappears as an available spotify device in Smartphone App. I need to do librespot.start to get it appear again. Here's the log then:

Two different issues here, apparently. And after that it dissappears again as available device in the smartphone app. Need to restart Kodi.

Independently from the other issues: Once the connection works the song starts playing after ca. 5s on Kodi and plays for about 3s. Then the sound disappears, the timestamps seem to jump betweet 4 and 5 seconds up and down (like a hickup without audio)... this takes about 5 seconds and then the song proceeds to play. Observed this many times.Thats the log for this:

In kodi the showed playtime does not display the correct values. It is simply proceeding and doesn't start counting from 0 after the next song starts playing. It is always showing proceeding times like this: 06:48/06:56 with a delta of 8s between both times.

Similar: In kodi I see how librespot is showing the now playing info: "Librespot 00:xx / 00:xx minutes", but I cannot find it in Music section of Kodi? How do I access the controls/playlist in Kodi then?

Also playing a continuing playlist does not work apparently. After one song is finished it jumped only once to the next, and after that one playback stopped and crashed apparently (as the [email protected] device disappeard again). Mostly it does not even play the second song.

Controls through smartphone (play/pause/skip etc.) seems to be without any effect? Perhaps supposed to be this way?

That's a load of issues, so I guess it is platform specific here, isn't it?

Since GDPR-1 released a new LE build, the kodi-output option finally started working

Now I see what the aim was, to include this function:

Ability to control Spotify through KODI Interface

This was unclear for me and that's why I asked twice why you included this function (didn't know your itention)

However there are some issues I'd like to mention and to get explained, if possible:

(Using KODI output instead of ALSA:) After choosing [email protected] in my Android Spotify app the connection seems to have trouble getting established. It is mostly done successfully after the second attempt.

The librespot service seems to crash after one track and [email protected] device disappears as an available spotify device in Smartphone App. I need to do librespot.start to get it appear again. Here's the log then:

Two different issues here, apparently. And after that it dissappears again as available device in the smartphone app. Need to restart Kodi.

Independently from the other issues: Once the connection works the song starts playing after ca. 5s on Kodi and plays for about 3s. Then the sound disappears, the timestamps seem to jump betweet 4 and 5 seconds up and down (like a hickup without audio)... this takes about 5 seconds and then the song proceeds to play. Observed this many times.Thats the log for this:

In kodi the showed playtime does not display the correct values. It is simply proceeding and doesn't start counting from 0 after the next song starts playing. It is always showing proceeding times like this: 06:48/06:56 with a delta of 8s between both times.

Similar: In kodi I see how librespot is showing the now playing info: "Librespot 00:xx / 00:xx minutes", but I cannot find it in Music section of Kodi? How do I access the controls/playlist in Kodi then?

Also playing a continuing playlist does not work apparently. After one song is finished it jumped only once to the next, and after that one playback stopped and crashed apparently (as the [email protected] device disappeard again). Mostly it does not even play the second song.

Controls through smartphone (play/pause/skip etc.) seems to be without any effect? Perhaps supposed to be this way?

That's a load of issues, so I guess it is platform specific here, isn't it?

Display More

Spotify changed its API and broke librespot yesterday morning, librespot was fixed yesterday evening, and the addon was updated just after that. Raybuntu should update the addon he provides.

As for Librespot through Kodi behaviour:

- Kodi user has priority over Spotify user (Librespot is not active when Kodi user is playing back a media, Kodi user can stop Librespot streaming, etc.)

Librespot is the spotify connect reverse engineered api, so it is basically spotify connect (api), which streams directly from the internet, but is controlled via the smartphone app

Even in Kodi-mode Librespot is controled via a [smartphone] Spotify app , which means it is like a chain consistenf of:

Smartphone app controls librespot on the RPi/C2

This controlled playback is then handed over as a stream to Kodi via ffmpegx/RTP, which introduces latency.

So basically it is still spotify connect, but simply with latencies and the benefit is that kodi knows and shows the playback

Librespot receives the internet-audio-stream and hands it over as audio stream to kodi (in kodi output mode). So that means this Librespot streams to Kodi via ffmpegx/RTP is done locally on the LibreELEC RPi/Odroid, right? Currently there is not just latency, but it crashes almost always, but thats apparently another story.

If my point 2.) is understood corretly by me. Then the unsuccessful control via smartphone app was caused by the changed api, or is this something that is still WIP? It is actually supposed to be controlled through, smartphone app, if issues are resolved, right?

And where do I find in kodi the currently played playlist? Is the playlist not present because the audio is simply streamed to kodi from librespot via via ffmpegx/RTP without further infos (e.g. playlist info and track info) as a pure audio-stream?

maybe I should note here that even the older 100a version (2 weeks ago?) works with an ODROID C2 (32bit raybuntu krypton13 or 14).

However it doesn't work reliable. Sometimes it does, sometimes not. If not, I restarted the device, which increases the chance of success. But if it works, it works great. Like a car: if it rolls, it rolls

I will test your new version tomorrow to give you newer feedback if needed!