[PLUGIN] Mixcloud

@patrickkfkan I have recently installed the mixcloud plugin. This works for the most part, but sometimes if I press the pause button (to continue playing after half an hour or so), everything locks up and volumio stops playing anything. I do not experience this issue while playing local files or files from my NAS.
In the logs I can read:

Aug 28 11:14 : ffmpeg/https: Opening 'https://audio13.mixcloud.com/secure/hls/6/a/7/f/b9fb-139b-4a4b-af00-5b687caeda7b.m4a/seg-318-a1.ts' for reading
Aug 28 11:14 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Aug 28 11:14 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Aug 28 11:15 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Aug 28 11:15 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Aug 28 11:15 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Aug 28 11:15 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Aug 28 11:15 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Aug 28 11:15 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Aug 28 11:15 : alsa_output: Decoder is too slow; playing silence to avoid xrun

UPDATE: after a while, music starts playing again:

Aug 28 11:31 : ffmpeg/tls: Error in the pull function.
Aug 28 11:31 : ffmpeg/hls,applehttp: keepalive request failed for 'https://audio13.mixcloud.com/secure/hls/6/a/7/f/b9fb-139b-4a4b-af00-5b687caeda7b.m4a/seg-318-a1.ts', retrying with new connection: Input/output error
Aug 28 11:31 : ffmpeg/hls,applehttp: Opening 'https://audio13.mixcloud.com/secure/hls/6/a/7/f/b9fb-139b-4a4b-af00-5b687caeda7b.m4a/seg-318-a1.ts' for reading
Aug 28 11:31 : ffmpeg/hls,applehttp: Opening 'https://audio13.mixcloud.com/secure/hls/6/a/7/f/b9fb-139b-4a4b-af00-5b687caeda7b.m4a/seg-318-a1.ts' for reading
Aug 28 11:31 : client: [0] closed
Aug 28 11:31 : ffmpeg/hls,applehttp: Opening 'https://audio13.mixcloud.com/secure/hls/6/a/7/f/b9fb-139b-4a4b-af00-5b687caeda7b.m4a/seg-319-a1.ts' for reading
Aug 28 11:31 : ffmpeg/hls,applehttp: Opening 'https://audio13.mixcloud.com/secure/hls/6/a/7/f/b9fb-139b-4a4b-af00-5b687caeda7b-192K.m4a/seg-318-a1.ts' for reading
Aug 28 11:31 : ffmpeg/hls,applehttp: Opening 'https://audio13.mixcloud.com/secure/hls/6/a/7/f/b9fb-139b-4a4b-af00-5b687caeda7b-192K.m4a/seg-319-a1.ts' for reading
Aug 28 11:31 : ffmpeg/https: Opening 'https://audio13.mixcloud.com/secure/hls/6/a/7/f/b9fb-139b-4a4b-af00-5b687caeda7b.m4a/seg-320-a1.ts' for reading
Aug 28 11:31 : ffmpeg/https: Opening 'https://audio13.mixcloud.com/secure/hls/6/a/7/f/b9fb-139b-4a4b-af00-5b687caeda7b-192K.m4a/seg-320-a1.ts' for reading

So, no idea what happened here :confused:

@patrickkfkan today I tried to use the mixcloud plugin but I can’t get it working

If I select Mixcloud in the browse menu, I get an empty page

some changes on mixcloud side?

1 Like

Appears to be so. I’ll see what can be done, maybe next week.

4 Likes

I have updated Mixcloud plugin v0.1.3 which should work now. Currently in beta channel of plugin store.

2 Likes

*Volumio 3 lates version

Hi everyone
I’m reopening the discussion because my previous post was closed with partial information.
Mixcloud hasn’t been working for a few days. When I start the plugin this error appears in the log:
[error: invalid json response body at Mixcloud reason: Unexpected token < in JSON at position 0 {“type”:“invalid-json”}
error: [mixcloud-model.base] getItems(): invalid json response body at Mixcloud reason: Unexpected token < in JSON at position 0
FetchError: invalid json response body at Mixcloud reason: Unexpected token < in JSON at position 0
at /data/plugins/music_service/mixcloud/node_modules/node-fetch/lib/index.js:273:32
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
error: invalid json response body at Mixcloud reason: Unexpected token < in JSON at position 0 {“type”:“invalid-json”}]

I have the same problem with soundcloud.
Even though I entered the access token it doesn’t display anything

Search the forum for the official plugin threads, you will see then the info that it has been fixed and how to update the plugins.

the updated plugins works fine, it’s been already promoted as stable

Updated v1.0.1 which adds live stream support. Currently in beta channel of plugin store.

Compared to previous versions, installation could take a while since additional packages need to be installed for live stream playback.

This version has been rewritten in TypeScript so there might be regressions. Please report here if you spot any.

To install from beta channel of plugin store:

  • Uninstall current version.
  • Enable Plugins Test Mode in http://<volumio address>/dev
  • Find the Mixcloud plugin in the plugin store. Click the Details button under it and choose latest beta version to install.
  • Restart Volumio.
4 Likes