Android - play a song by url

46 views
Skip to first unread message

Martin Lazarov

unread,
Mar 9, 2014, 12:47:44 PM3/9/14
to rdio...@googlegroups.com
Hello, is it possible to play a song by a given url in Android? For example given this url: "http://www.rdio.com/artist/DJ_Party/album/Dance_Hits_Party_Vol._1/track/Better_Off_Alone/" to start playing the song. 

Devin Sevilla

unread,
Mar 11, 2014, 2:56:20 AM3/11/14
to rdio...@googlegroups.com
Hi Martin!

If the Rdio Android app is installed on the phone, you can replace the
`http` URI scheme with `rdio`. It doesn't support auto-play, so the
user will need tap play. Make sure to checkout our mobile app launch
guide[1].

[1]: http://www.rdio.com/developers/docs/guides/mobile-uris/

--
Devin Sevilla
API Engineer, Rdio Inc.
http://rdio.com/people/devin_s/
> --
> You received this message because you are subscribed to the Google Groups
> "Rdio API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rdio-api+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rdio-api/72ae2b1a-d41b-4063-8f97-b00289129c01%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Martin Lazarov

unread,
Mar 11, 2014, 3:47:12 AM3/11/14
to rdio...@googlegroups.com
Dear Devin,
I also tried to run the example hello-android app. I did everything as it was described in the guide for Android, but when I run the application it just keeps buffering and it does not add any tracks to the trackQueue. Can you give me more information how I can connect from my Android app to Rdio services and stream music from Rdio?

Devin Sevilla

unread,
Mar 14, 2014, 2:17:43 AM3/14/14
to rdio...@googlegroups.com
Ah! I didn't realize you were using the Android SDK. The Android SDK
accepts Rdio object keys for playback, not URLs. You'll need to use
something like the getObjectFromUrl[1] to figure out the key.

If you're already using object keys, it would be helpful to see a log
and sample code. If you would prefer to share that information in
private, you can email develope...@rd.io

[1]: http://www.rdio.com/developers/docs/web-service/methods/core/ref-getobjectfromurl

-- Devin
Reply all
Reply to author
Forward
0 new messages