Re:Show HN: SoundCloud Instant
by wdewind on Thursday April 17, 2014 @08:31AM
(#7603152)
> I also see that your API key is there in clear. I hope no one can do any bad stuff in your name.
To OP: The way to fix this is to have the JS make a request to your own server, have your own server make the request to Soundcloud and proxy it back to you. That way you don't have to put your key in the JS, you can keep it on your server.
EDIT: Right now, it's meant to be used only on desktop. I'm starting to get into frontend stuff, so don't really know how to touch optimize the app. Again, suggestions welcome.
Re:Show HN: SoundCloud Instant
by PWaterfield on Thursday April 17, 2014 @01:33AM
(#7602119)
It's loading very fast! Cool project. An "add to playlist" button would be cool I think (unless I'm not seeing it).
I'm not sure if this is your type of thing but if you are looking for more ideas I was very impressed by the juketube angular/polymer demos[0]. It'd be very cool to see those projects ported to soundcloud instead of YouTube.
Re:Show HN: SoundCloud Instant
by t0 on Thursday April 17, 2014 @01:43AM
(#7602148)
This is great. It would be nice to see the next couple of songs that are going to play and maybe a delete button next to them. A Youtube version would also be useful.
Re:Show HN: SoundCloud Instant
by huckyaus on Thursday April 17, 2014 @03:40AM
(#7602395)
Nice work. I'm personally not a huge fan of autoplay, since there's a ton of stuff on SC and the search results aren't always accurate enough.
Volume control would also be ace. Not sure how easy that would be to implement - now that I think about it, I've never seen it on any of their widgets.
Re:Show HN: SoundCloud Instant
by digisocialnet on Thursday April 17, 2014 @08:04AM
(#7603056)
i love it but it would be cooler with a full screen UI, there was a soundcloud api hack that would play people's loved/favorited tracks that kind of did that..
> Blocked loading mixed active content "http://code.jquery.com/jquery-latest.js"
> Blocked loading mixed active content "http://connect.soundcloud.com/sdk.js"
You're trying to mix HTTPS and HTTP...
I also see that your API key is there in clear. I hope no one can do any bad stuff in your name.
Oh, and it looks like every action is sent to google for statistics ?
To OP: The way to fix this is to have the JS make a request to your own server, have your own server make the request to Soundcloud and proxy it back to you. That way you don't have to put your key in the JS, you can keep it on your server.
Yeah I just hope no one misuses it.
Yes.
Drop the scheme [0], the browser will be smart enough to know whether to use http or https.
[0] https://stackoverflow.com/questions/550038/is-it-valid-to-re...
Oh, and the source code is open: https://github.com/karan/scInstant
EDIT: Right now, it's meant to be used only on desktop. I'm starting to get into frontend stuff, so don't really know how to touch optimize the app. Again, suggestions welcome.
I'm not sure if this is your type of thing but if you are looking for more ideas I was very impressed by the juketube angular/polymer demos[0]. It'd be very cool to see those projects ported to soundcloud instead of YouTube.
[0]http://jt.ms/juketube/
I'm having trouble thinking of how to improve scInstant as it is--it's so pared down and fast and just works! Great job!
Does the API has rate limit? Are you sending a new query every 200ms? https://github.com/karan/scInstant/blob/gh-pages/app.js#L98
https://news.ycombinator.com/item?id=3363451
I will sell you soundcloudinstant.com for 1 million dollhairs. But really, yours is much better :)
Volume control would also be ace. Not sure how easy that would be to implement - now that I think about it, I've never seen it on any of their widgets.
http://bandcamp.com/help/audio_basics#volume
I have a similar feature on http://tuned.io/ - it's a soundcloud search with autocomplete; you can play any of the search results instantly, etc.
The music makes for good coding background.
FWIW, I just added keyboard shortcuts for volume control though: `shift up/down - volume`
It's on the "audio" branch of my code.