array( 'brightcove_title' => '', 'title' => 'Le marketing interactif', 'thumbnail_url' => '', ), '1438140817001' => array( 'brightcove_title' => '', 'title' => 'L\'acquisition d\'entreprise', 'thumbnail_url' => '', ), '1438617042001' => array( 'brightcove_title' => '', 'title' => 'L\'acquisition immobilière', 'thumbnail_url' => '', ), '1438715822001' => array( 'brightcove_title' => '', 'title' => 'L\'embauche', 'thumbnail_url' => '', ), '1438715811001' => array( 'brightcove_title' => '', 'title' => 'L\'innovation', 'thumbnail_url' => '', ), '1438569888001' => array( 'brightcove_title' => '', 'title' => 'L\'achat d\'équipement', 'thumbnail_url' => '', ), ); $url = 'http://api.brightcove.com/services/library?command=find_videos_by_ids&token=' . $brightcove_token . '&video_ids=' . implode( '%2C', array_keys( $videos_array ) ) . '&fields=name%2Cid%2CthumbnailURL&get_item_count=true'; $brightcove_json = file_get_contents( $url ); $brightcove_object = json_decode( $brightcove_json ); foreach( $brightcove_object->items as $item ) { $videos_array[ $item->id ]['thumbnail'] = $item->thumbnailURL; $videos_array[ $item->id ]['brightcove_title'] = $item->name; } ?>
$video_array ) { $class = ''; if( ++$i == count( $videos_array ) ) $class = 'last'; ?>