我向Brightcove服务器提出了很大的要求,以便在我的视频中批量更改元数据.似乎它只是通过1000次迭代然后停止 – 任何人可以帮助调整这个代码,以防止超时发生?它需要进行大约7000/8000次迭代.
<?PHP include 'echove.PHP'; $e = new Echove( 'xxxxx','xxxxx' ); // Read Video IDs # Define our parameters $params = array( 'fields' => 'id,referenceId' ); # Make our API call $videos = $e->findAll('video',$params); //print_r($videos); foreach ($videos as $video) { //print_r($video); $ref_id = $video->referenceId; $vid_id = $video->id; switch ($ref_id) { case "": $MetaData = array( 'id' => $vid_id,'referenceId' => $vid_id ); # Update a video with the new Meta data $e->update('video',$MetaData); echo "$vid_id updated sucessfully!<br />"; break; default: echo "$ref_id was not updated. <br />"; break; } } ?>
谢谢!