video issue

This commit is contained in:
Velz2020 2023-04-13 15:34:36 +05:30
parent dc722781be
commit 34543ea34b
2 changed files with 16 additions and 16 deletions

View File

@ -9237,23 +9237,23 @@ class PD_Controller extends REST_Controller
if ($value['composition_id'] && $value['vsp'] != 'google') {
$res = $this->twlio->getCompositionStatus($value['composition_id']);
// if (count($res) && $res['status'] == 'completed') {
if (count($res) && $res['status'] == 'completed') {
// // $is_copied = $this->copyMediaFromTwiloToS3($pd_master_details, $value, $pd_category); // copy media from twlio s3 to our s3
// // $fields_to_update = array('twilo_status' => 'completed');
// // if ($is_copied) {
// // $fields_to_update['s3_copied'] = 1;
// // }
// $id = $this->PD_Model->updateRecords($fields_to_update, VIDEO_ROOM_INFO, array('video_room_info_id' => $value['video_room_info_id']));
// $is_copied = $this->copyMediaFromTwiloToS3($pd_master_details, $value, $pd_category); // copy media from twlio s3 to our s3
$fields_to_update = array('twilo_status' => 'completed');
// if ($is_copied) {
// $fields_to_update['s3_copied'] = 1;
// }
$id = $this->PD_Model->updateRecords($fields_to_update, VIDEO_ROOM_INFO, array('video_room_info_id' => $value['video_room_info_id']));
// if ($id) {
// if ($room_id) {
// $result_data = $is_copied;
// } else {
// $result_data++;
// }
// }
// }
if ($id) {
if ($room_id) {
$result_data = $is_copied;
} else {
$result_data++;
}
}
}
} else {
$room_status = $this->twlio->getRoomDataByRoomID($value['room_id']);
if ($room_status == 'completed') {

View File

@ -40,7 +40,7 @@ class video_grabber_helper
if($value['is_uploaded'] || $value['vsp'] == 'google'){$video_name = $value['composition_id'];}
$file_name = $video_name;
if($value['s3_copied'])
if($value['twilo_status'] == 'completed')
{
// $final_key = 'pd'.$pd_master_details[0]['pd_id'].'/video/'.$file_name;
$final_key = $file_name;