Skip to content

api.videoDetails returns different JSON structure for transcode complete vs. processing #1

Description

@looshi

Hey Guys,
so far this is a really great library, thanks. I noticed a difference in the return structure when calling api.videoDetails as shown below. Maybe I'm doing something wrong ?

calling videoDetails like so :
VzaarApi.videoDetails(videoId, function(statusCode,data){
console.log(statusCode, data);
}, 'json');

I receive the following output :
for in process status response :
200 { 'vzaar-api': { video: { id: 2729902, video_status_id: 11, state: 'Preparing' } } }
200 { 'vzaar-api': { video: { id: 2729902, video_status_id: 1, state: 'Uploaded' } } }

for transcode complete response :
200 { type: 'video',
version: '1.0',
width: 576,
height: 432,
video_status_id: 2,
... etc.
}

so when the video_status_id is 2 , the structure of the Json return is not as deep.
It's not that big of a deal, I can work with it, but I think it would be good to make these consistent or at least document the return structure.

thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions