2019-05-16, 15:47
(2017-06-06, 14:23)marcelveldt Wrote:(2017-06-06, 13:09)borgybz Wrote: As you asked me I already posted the log in previous page. Now trying several times I realized that sometimes the playback starts, but the streaming is very bad and slow and playback keeps stopping and I hear cracking sounds! I believe to think that the problem is about the port used by this type of connection. Can you explain me what type of connection does the addon use to connect to Spotify servers? Maybe could be blocked by my isp? I connect through a Vodafone Wi-Fi hotspot with captive portal login... ( I made a script to auto connect that runs every five minutes..)
Well, there's the answer... At this time I did not implement any cache or buffer of any kind. The audio is just streamed directly in PCM format from libreelec, which receives the stream in realtime as ogg vorbis from Spotify's servers. So, on slow or bad internet connections this will not perform well.
The previous version had caching to disk enabled by default This will solve the issue you describe but this is a drama for users running the addon on a pi because it will wear out the SD card. For that reason, and because I made the assumption that nowadays everyone has a very fast connection, I disabled the whole caching part.
What I will do is implement a toggle option in the addon settings to enable caching to disk.
Once that's done, I will give you a headsup to test again. Hopefully later today already as it shouldn't be too much work.
Sorry to come back to this old post.
But I've been struggling with same issue for years. And it is still there. From time to time (5...8 times an hour) playback stops and after some time next song starts.
I'm pretty sure this is related to very unstable and slow internet connection and (missing?) buffering. I use version 1.1.58 on kodi 18.0 on Win 10 PC (64 bit).
I use VC 2017.
Is there any way to modify or enable the caching to disk as mentioned in post above?
Thanks a lot!