API: track.id + track.stream-url must be merged to get stream?
@eric wahlforss: souncloud api + js + flash -> track.stream-url + track.id???
can you give me an example, how to merge this information to be able to stream with eg. jw-player/longtailvideo player??
can you give me an example, how to merge this information to be able to stream with eg. jw-player/longtailvideo player??
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?hi,
to stream at track you have to get its stream_url from the API,
so e.g. for this track: http://api.soundcloud.com/tracks/2
the stream url is: http://media.soundcloud.com/stream/Kc... -
Inappropriate?hi eric, i know.
i have the stream-url, but the flash player cant open the stream.
listen: i send the stream url to a flash var of the player (i use jw-player, btw.)
please have a look at my blog: webmove.org
like any other mp3, i send the url to the flash player to play.
but in line 209 ff....on soundmanager2.js there is something with track.stream-url and track.id
can you explain me this?
if you open an adobe flash player and want to insert this track.stream-url....flash player says cant open file!!!
why doesnt it work like any other mp3 i can stream?
please look into my webmove.js there is an oop playtagger procedure, which handles the js and embeding the flashplayer into my page.
thx alot, ping to you, daniel -
Inappropriate?eric, try this one please: http://www.longtailvideo.com/support/...
there you can insert you stream-url and try to stream? in my case it doesnt work!!!
so it must be something different, or?
thank you -
Inappropriate?hi,
I tested this now with the player at http://www.longtailvideo.com/support/... and it turns out that it's using the file ending (e.g. ".mp3" to decide how to play back the file. since we're not appending an extension to the media url:s it won't work in the player.
However, if you set up a redirect on your site from something.mp3 to the media url, it will work well (I tested it).
Here's a test url:
http://forss.to/media/test.mp3 (will redirect to a soundcloud track)
if you paste this into the player, it will play nicely.
To do this in e.g. apache you create an .htaccess file in the same directory and add the following:
RewriteRule test.mp3 http://media.soundcloud.com/stream/QX...
I think Soundmanager 2 does the same (depending on what setting you use).
Hope this helps you!
I’m happy
Loading Profile...




EMPLOYEE
