Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SoundCloud without Client ID ??? #2501

Closed
PWaddict opened this issue Feb 16, 2018 · 9 comments
Closed

SoundCloud without Client ID ??? #2501

PWaddict opened this issue Feb 16, 2018 · 9 comments
Labels

Comments

@PWaddict
Copy link

Hi,

I'm interested on using your script for SoundCloud. So I downloaded all the files and tested the demo.

The method with the Client ID is working perfect without any errors:
https://api.soundcloud.com/tracks/323195515/stream?client_id=95f22ed54a5c297b1c41f72d713623ef

The only problem with that method is that SoundCloud have closed the request form for new Client IDs. So, I've tested the alternate method that don't need a Client ID:
https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/323195515

Now, with this method the are few errors plus the sound volume is EXTREMELY low.
If I pause the player and press again the play button it doesn't do anything.

Here are the errors:

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://w.soundcloud.com') does not match the recipient window's origin ('http://localhost').

Uncaught DOMException: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The canvas width is 0.
    at n.r (https://widget.sndcdn.com/single-sound-064ce28-cfd9f8f4.js:2:24001)
    at n.draw (https://widget.sndcdn.com/single-sound-064ce28-cfd9f8f4.js:2:24924)
    at n (https://widget.sndcdn.com/widget-c3f316f-15289861.js:6:3787)
    at n.t.(anonymous function) [as draw] (https://widget.sndcdn.com/widget-c3f316f-15289861.js:6:5072)
    at n.update (https://widget.sndcdn.com/single-sound-064ce28-cfd9f8f4.js:2:390)
    at n.update (https://widget.sndcdn.com/single-sound-064ce28-cfd9f8f4.js:1:31767)

Looking forward for a solution.

Thanks!

@rafa8626
Copy link
Contributor

@PWaddict Thanks for checking this. I'll see if the rendered can accept this URL, and let you know. Please star the project to continue supporting it

@PWaddict
Copy link
Author

Actually I've build a custom SoundCloud player using the Widget API based on this sample that I found and it's working perfect. Good luck with your script.

@thecyrilcril
Copy link

am having the same issue, using this
<audio class="mejs__player" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/445858110" type="video/soundcloud"></audio>

audio is really degraded and low in level

@oliverll1
Copy link

Hey bro im gonna use this id if thats not an issue since soundcloud is not letting us create more

@vivi90
Copy link

vivi90 commented May 4, 2020

@rafa8626 Is it okay to use the client id of mediaelement in other open source projects?

@6lyxt
Copy link

6lyxt commented May 10, 2020

i dont get the point of the api at all i mean noone can use it rn its confusing

@vivi90
Copy link

vivi90 commented May 22, 2020

@6lyxt Everyone is able to use the Soundcloud API, if he has an registered client id.

@rafa8626
Copy link
Contributor

@vivi90 I’ve been disconnected from this project for quite some time, and to be honest I don’t know if any SoundCloud policies had changed in terms of sharing the client ID. Last thing I know is that, as long as you had a client ID, you could use the API freely. But from that to share it in another project I’m not sure

@vivi90
Copy link

vivi90 commented May 22, 2020

@rafa8626 Okay, i also don't know that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants