API.getMedia()

Returns the media object of the current playing media.

Comments

  • Avatar
    Mike Burke

    Any chance of getting this object explained a little bit better?

    This is what I've been able to figure out:

    author: Self-explanatory - the artist
    title: Self-explanatory - song title
    cid: The YouTube ID (what would be in v=)
    duration: Length of video in seconds
    image: Video thumbnail

    "id" is the one I can't figure out. This would seem to be some kind of unique identifier, but I see people in our community play the same video (same cid) and the getMedia() object returns a different id. Meanwhile, if I play the same video - even in different playlists, I get the same id every time.

    Is this tied to the user in some way? What causes the id to be different while the cid is the same?

  • Avatar
    Burkes

    I think ID might be the identification for that specific play, so it can be registered in your 'Recently Played' or Profile

  • Avatar
    EricS

    Is there anyway to tell from this object if the media still exists? Songs can be removed from SoundCloud and I'd like a way to test if the media still exists.

  • Avatar
    Burkes

    I dont really know :P

  • Avatar
    Vyte

    hey hot listen to music

  • Avatar
    Vyte

    how

  • Avatar
    WiBla

    What if the media is not displayed ? Like if the video is private, is there a way to know it ?

Powered by Zendesk