Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Return video information in API for videos

#72

The API does not yet return video specific information for videos. For example, in the friend shake, a video may appear as:

{
    "description": null, 
    "height": 360, 
    "name": "http://www.youtube.com/watch?v=6JVpy0L5z7s", 
    "original_image_url": "http://mlkshk.com/r/XSM", 
    "permalink_page": "http://mlkshk.com/p/XSM", 
    "title": "Minamisanriku footage", 
    "user_id": 2, 
    "user_name": "andre", 
    "width": 480
}

Per #71 Return video information in oEmbed for videos, I might expect the same video specific information as would be present in an oEmbed video:

{
    "description": null,
    "height": 360,
    "html": "<iframe class=\"youtube-player\" type=\"text/html\" width=\"550\" height=\"339\" src=\"http://www.youtube.com/embed/6JVpy0L5z7s?rnd=0.374508428366&autoplay=0\" frameborder=\"0\"></iframe>",
    "name": "http://www.youtube.com/watch?v=6JVpy0L5z7s",
    "original_image_url": "http://mlkshk.com/r/XSM",
    "permalink_page": "http://mlkshk.com/p/XSM",
    "thumbnail_height": 480,
    "thumbnail_url": "http://mlkshk.com/r/XSM",
    "thumbnail_width": 640,
    "title": "Minamisanriku footage",
    "type": "video",
    "user_id": 2,
    "user_name": "andre",
    "width": 480
}

(That is, type, html, and thumbnail_*.)

Reported by Mark Paschal · March 12th, 2011 @ 11:58 AM

State: open
Milestone: none
Assigned to: Andre Torrez Andre Torrez

Activity

  1. Mark Paschal
    Mark Paschal

    As with #71 Return video information in oEmbed for videos, it's fine to treat a video as a link object here too:

    {
        "description": null,
        "height": 360,
        "permalink_page": "http://mlkshk.com/p/XSM",
        "title": "Minamisanriku footage",
        "type": "link",
        "url": "http://www.youtube.com/watch?v=6JVpy0L5z7s",
        "user_id": 2,
        "user_name": "andre",
        "width": 480
    }
    

    March 16th, 2011 @ 04:07 PM

  2. Andre Torrez
    Andre Torrez
    • State changed from new to open

    I'm rewriting this part right now so that /api/sharedfile/1 and /api/friends return either a single object or a list of objects that are identical. Poor planning on my part means that it was generating the sharedfile object twice depending if it was a single request or in a group.

    We're rolling out Friend Finding in the next hour or so, so I'm going to help with that. This code I'm writing will be live tomorrow for sure.

    March 16th, 2011 @ 04:15 PM

  3. Mark Paschal
    Mark Paschal

    Is the refactoring still left to do? The API includes "url" data in the friend shake already, so this could be complete.

    April 1st, 2011 @ 09:00 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.