Ejemplo n.º 1
0
 private function executeEncryptPackageCmd($profile, $inputFiles)
 {
     $returnValue = 0;
     $output = array();
     $cmd = KWidevineBatchHelper::getEncryptPackageCmdLine($this->params->widevineExe, $profile->regServerHost, $profile->iv, $profile->key, $this->packageName, $inputFiles, $this->data->destFileSyncLocalPath, $profile->maxGop, $profile->portal);
     exec($cmd, $output, $returnValue);
     KalturaLog::info('Command execution output: ' . print_r($output, true));
     if ($returnValue != 0) {
         if (strstr(implode(" ", $output), KWidevineBatchHelper::FIX_ASSET_ERROR)) {
             return KWidevineBatchHelper::FIX_ASSET_ERROR_RETURN_CODE;
         }
     }
     return $returnValue;
 }