Archives

Posts Tagged ‘grab youtube video info’

// function to parse a video function parseVideoEntry($entry) { $obj= new stdClass; // get nodes in media: namespace for media information $media = $entry->children(‘http://search.yahoo.com/mrss/’); $obj->title = $media->group->title; $obj->description = $media->group->description; // get video player URL $attrs = $media->group->player->attributes(); $obj->watchURL = $attrs['url']; // get video thumbnail $attrs = $media->group->thumbnail[0]->attributes(); $obj->thumbnailURL = $attrs['url']; // get node for [...]

Aug 15th, 2009 | Filed under Video