JS Api: Why is R.player.playingSource().owner an Object and not a String?

15 views
Skip to first unread message

Trevor

unread,
Mar 19, 2014, 1:44:57 PM3/19/14
to rdio...@googlegroups.com
When calling R.player.playingSource(), the source.player property I get back is an Object that has _command, _configure, _getModule, _handleChange, _infoForReboot, _name, _parent, _setAttribute, _target, bind, off, on, trigger, and unbind members on it. Isn't that just supposed to be a String that is the owner's name (http://www.rdio.com/developers/docs/jsapi/types/ref-js-api-types-playlist)? Specifically, I'm seeing this when my source is one of my playlists.

R. Kevin Nelson

unread,
Mar 19, 2014, 3:01:29 PM3/19/14
to rdio...@googlegroups.com
Hi Trevor,

Thanks for the report.  This is a bug that we'll be fixing shortly.

Best,
Kevin

-- -- --
R. Kevin Nelson
API Engineer @ Rdio, Inc.


On Wed, Mar 19, 2014 at 10:44 AM, Trevor <rover...@gmail.com> wrote:
When calling R.player.playingSource(), the source.player property I get back is an Object that has _command, _configure, _getModule, _handleChange, _infoForReboot, _name, _parent, _setAttribute, _target, bind, off, on, trigger, and unbind members on it. Isn't that just supposed to be a String that is the owner's name (http://www.rdio.com/developers/docs/jsapi/types/ref-js-api-types-playlist)? Specifically, I'm seeing this when my source is one of my playlists.

--
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/3a328376-8643-4c85-b2de-2e040832b0d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Trevor

unread,
Mar 20, 2014, 4:09:12 PM3/20/14
to rdio...@googlegroups.com
Cool so I'm seeing that source.owner is now an Object that has "firstName", "icon", "isProtected", "key", "lastName", "type", and "url" members on it. Are there plans to mimic this convention with the data that R.request({method:"get", keys:"p12345"}); returns? It returns "owner", "ownerUrl", "ownerKey" and "ownerKey" String members instead of an Object.

Justin Tulloss

unread,
Mar 20, 2014, 4:14:49 PM3/20/14
to rdio...@googlegroups.com
Hi Trevor,

If you request the `ownerObj` extra, you'll be able to get the actual owner object instead of information about it. You can see an example here.


Hope that helps!

Justin


Trevor

unread,
Mar 20, 2014, 4:23:28 PM3/20/14
to rdio...@googlegroups.com
Ah that works. Thanks Justin!
Reply all
Reply to author
Forward
0 new messages