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!