Hello, my problem is this. My PHP Script can currently get all the recordings and upload them to vimeo, the problem is that some are uploaded with a content not accepted by vimeo, although they are all .mp4, but I am currently filtering by a size limit and excluding the types of recordings , to only upload the indicated for vimeo.
private function getGrabacionesZOOM($meetingID,$nameMeeting,$cuenta,$fecha_reunion){
$url_ZOOM="https://api.zoom.us/v2/meetings/$meetingID/recordings";
$token= $this->generateJWT();
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $url_ZOOM,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"authorization: Bearer $token",
"content-type: application/json"
),
));
$response = curl_exec($curl);
curl_close($curl);
//var_dump($response);
$response_data=json_decode($response,true);
$filtro= null;
$num=0;
if(!empty($response_data['recording_files'])){
foreach($response_data['recording_files'] as $grabacion){
if(isset($grabacion["id"])){
$nombreID=$grabacion["id"];
$urlDescarga=$grabacion["download_url"];
$tipo_grabacion=$grabacion["file_type"];
if($grabacion["file_size"] >= 2000000){
if($this->filtrar_archivo($tipo_grabacion)){
//if($this->filtrar($nombreID, $filtro)){
//$this->uploadGrabacionesV($urlDescarga, $nombreID, $nameMeeting,$cuenta, $fecha_reunion);
// $num++;
//}
}
print ('este es el tipo aceptado'.$grabacion["recording_type"]);
print('es mayor a 2mb '.$grabacion["file_size"]);
}else{
print ('este es el tipo aceptado'.$grabacion["recording_type"]);
print('es menor a 2mb '.$grabacion["file_size"]);
}
}else{
/*Por alguna razon se obtiene una grabacion sin id y por lo tanto esta no existe
* Porque el id es el identificador unico de cada grabacion y si una no lo tiene
* NO EXISTE
*/
}
}
}
}
I did a test I uploaded a video recording that weighs more than 2 mb, but when I get its type, it tells me that it is:
shared_screen_with_speaker_view
But when uploading it to vimeo, it does not accept it?
Thank you and I hope your support.