Fixed Soundcloud embed for private tracks

Mr Lucky

Well-known member
Soundcloud allows private tracks, ie they are only available by the URL, not in your list of tracks. They still offer an embed code, so shouldn't they embed in xenforo just as with a public soundcloud track?
 
The answer is really "it depends". Soundcloud uses oEmbed for embedding, so the HTML we receive mostly comes from them. Do you have an example that isn't working?
 
Here

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.


Note that private tracks have that extra bit on the end of a URL, this isn the actual share code they give you for that track

Code:
https://soundcloud.com/petethomasmusic/boomtown-3/s-KBoVQ
 
Same track public

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
Last edited:
This might be a bug in our Soundcloud embed code, as it's not using the trailing code. I'll move this to bugs, though I don't know what will happen.
 
This might be a bug in our Soundcloud embed code, as it's not using the trailing code. I'll move this to bugs, though I don't know what will happen.
Thanks.

Maybe i is just missing the option for that extra bit of code for the private tracks.
 
Our match code wasn't attempting to match the private track secret key within the private track URL and therefore it just fell over. We've changed this now so it should start working as of the next release.

Also, if I cross my fingers and paste the original private URL from post #3 below (https://soundcloud.com/petethomasmusic/boomtown-3/s-KBoVQ) then it should now work:

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
Top Bottom