rwieruch / favesound-redux

🎶 A SoundCloud Client in React + Redux running in production. Live Demo and Source Code to explore React + Redux as a beginner.
http://www.robinwieruch.de/the-soundcloud-client-in-react-redux/
1.59k stars 249 forks source link

Failed to play song #37

Closed chriszhangusc closed 7 years ago

chriszhangusc commented 7 years ago
screen shot 2017-06-06 at 5 39 01 am

This happens when I try to play a song. I think this may be related to too many requests have been made under one client_id, should we use an alternative client_id?

rwieruch commented 7 years ago

Yes, I think since the client_id is public, people might use it for their own projects... Maybe I would see the currently used client_id as deprecated and advice people in the README.md installation guide to use their own and how to apply at SoundCloud for it? Would you know another solution to the problem @MiniPekka ? Thanks for bringing this up.

chriszhangusc commented 7 years ago

@rwieruch I would say just try to switch to another clientId and see how it goes.

I think it would also be better to use client_id instead of oauth_token to make the audio src requests because oauth_token is valuable since it will take up to a month for SoundCloud to give you one which sucks by the way. client_id, on the other hand, does not have this problem. We can have a pool of client_ids and whenever we need to make a request for a soundtrack, we can randomly fetch one from the pool and attach it to the request.

rwieruch commented 7 years ago

@MiniPekka I never used the new registration process by SoundCloud. Wouldn't you have to wait for the client_id as well for one month? I had this problem in my React Redux SC tutorial when SoundCloud changed their registration process and readers of the tutorial had to wait for their key. I am curious because you speak about the client_id. Is there a workaround to the registration process? Regardless of that your idea sounds great if it would be possible.

chriszhangusc commented 7 years ago

@rwieruch Sorry my bad, you are right, you'll also have to wait to get the client_id. I've mistaken it for something else here. However, I got a bunch of client_ids, maybe I can do a temporary fix with one of my client_ids to make it work again.

rwieruch commented 7 years ago

@MiniPekka that sounds great. Either way, I think I have to try again to write up someone from SoundCloud about thei registration process...

rwieruch commented 7 years ago

Fixed in https://github.com/rwieruch/favesound-redux/pull/43 by @MiniPekka

rwieruch commented 7 years ago

@MiniPekka are you active on Twitter? Would like to reach you there :)

chriszhangusc commented 7 years ago

@rwieruch Yeah, I lost my old one and just started a new one today, I'll be active there. @AngryChris_Z