Example #1
0
 private function technical_audit($video)
 {
     $data = array('SourceID' => 'xmlspy', 'Priority' => 5, 'RequestID' => strval($video['id']), 'CallbackAddressInfo' => 'http://' . $this->settings['App_livmedia']['host'] . '/' . $this->settings['App_livmedia']['dir'] . 'technical_review_callback.php', 'TaskName' => $video['title'], 'StorageType' => 1, 'StoragePath' => $this->settings['technical_swdl']['sharedir'] . rtrim(str_replace('/', '\\', $video['video_path']), '\\'), 'FileName' => $video['video_filename']);
     $wsdl = "../dyemb/AddEMBTaskService.wsdl";
     $client = new SoapClient($wsdl, array('trace' => true, 'cache_wsdl' => WSDL_CACHE_NONE, 'soap_version' => SOAP_1_2));
     $struct = array('AsynRequest' => array('SourceID' => $data['SourceID'], 'Priority' => $data['Priority'], 'RequestID' => $data['RequestID'], 'CallbackAddressInfo' => $data['CallbackAddressInfo']), 'TaskName' => $data['TaskName'], 'UserID' => strval($this->user['user_id']), 'TransferTasks' => array('TransferInfo' => array('SourceFile' => array('StorageInfo' => array('SystemID' => 'livmcp', 'StorageType' => $data['StorageType'], 'StoragePath' => $data['StoragePath']), 'FileName' => $data['FileName']), 'TaskOption' => array('AutoFileAudit' => 4, 'IsAddLogoInfo' => false))));
     try {
         $ret = $client->AddEMBTask($struct);
         $EMBTaskID = $ret->EMBTaskID;
     } catch (Exception $soapFault) {
         //var_export($soapFault);
     }
     return $EMBTaskID;
 }