Skip to content

Instantly share code, notes, and snippets.

@nosalvage
Created June 25, 2015 11:39
Show Gist options
  • Save nosalvage/c7d979f10acd2a0722ba to your computer and use it in GitHub Desktop.
Save nosalvage/c7d979f10acd2a0722ba to your computer and use it in GitHub Desktop.
for(var i = 0; i < items.length; i++){
if(items[i].attachments){
for(var j = 0; j < items[i].attachments.length; j++){
if(items[i].attachments[j].type == 'video'){
feed.getVideo(items[i].attachments[j].video.owner_id, items[i].attachments[j].video.owner_id+'_'+items[i].attachments[j].video.id).then(function(result){
videos[items[i].id].player = result.data.response.items[0].player;
});
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment