spotify-connect-web icon indicating copy to clipboard operation
spotify-connect-web copied to clipboard

Zeroconf : device name, account ad device type truncated (wrong spotify.h offsets)

Open u1735067 opened this issue 9 years ago • 5 comments

With the commit setting offets to 0x41 for zeroconf in spotify.h, those names are truncated :

remote name: drus
account req: MIUM
device type: NOWN

It is affecting the name displayed by Spotify (and I guess it's doesn't like the other things too). Reverting to 0x40 is ok :

    char deviceId[0x40];
    char activeUser[0x40];
    char remoteName[0x40];

By the way, you say "spotify.h was taken from from https://github.com/plietar/spotify-connect" but I couldn't find it, can you tell me more ?

u1735067 avatar Feb 29 '16 19:02 u1735067

Which version of the library are you using? And yes, spotify.h was originally taken from that repo (https://github.com/plietar/librespot/blob/old/common/spotify.h ), but the updated version is kept in this repo

Fornoth avatar Mar 09 '16 19:03 Fornoth

You mean version of "libspotify_embedded_shared.so" ? The one included in the pre-build chroot. The test was on RPi. Why is the new version using 0x41 size ? Thank you for the information about spotify.h, I guess the readme needs an update :)

u1735067 avatar Mar 09 '16 20:03 u1735067

Try replacing /usr/lib/libspotify_embedded_shared.so with one of these libraries (Use the armv6 ones for Rpi1, armv7 for Rpi2/3) https://github.com/sashahilton00/spotify-connect-resources/tree/master/libs

Fornoth avatar Apr 02 '16 05:04 Fornoth

Hello, I bought a Mi Box (MDZ-16-AB), so I'm not going to continue bother with "hacks" for the moment, and I'm not testing, sorry. I really appreciated the ability to use Spotify Connect thank to your work and the work of the others, so thank you (and disappointment about Spotify). Nobody else seems to have encountered the issue (?), but the state of the issue is up to you :)

u1735067 avatar May 07 '17 17:05 u1735067

Hey guys! I have the same issue, my device "Wohnzimmer" is being truncated to "hnzimmer"... Thanks for your help!

oskarn97 avatar May 20 '17 16:05 oskarn97