Show HN: SoundCloud Instant
karan.github.io
karan.github.io
> 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.
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.
shift up/down - volumeI 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.