feat: configure cue points analysis per track type
This commit is contained in:
parent
3a9ca109c3
commit
f5e46c6f3d
22 changed files with 246 additions and 42 deletions
|
@ -92,7 +92,8 @@ class Application_Model_RabbitMq
|
|||
$tmpFilePath,
|
||||
$importedStorageDirectory,
|
||||
$originalFilename,
|
||||
$fileId
|
||||
$fileId,
|
||||
$fileTrackTypeId
|
||||
) {
|
||||
$config = Config::getConfig();
|
||||
|
||||
|
@ -114,6 +115,15 @@ class Application_Model_RabbitMq
|
|||
$data['import_directory'] = $importedStorageDirectory;
|
||||
$data['original_filename'] = $originalFilename;
|
||||
|
||||
$options = [];
|
||||
|
||||
if ($fileTrackTypeId) {
|
||||
$fileTrackType = new Application_Model_Tracktype($fileTrackTypeId);
|
||||
$options['analyze_cue_points'] = $fileTrackType->getAnalyzeCuePoints();
|
||||
}
|
||||
|
||||
$data['options'] = $options;
|
||||
|
||||
$jsonData = json_encode($data);
|
||||
// self::sendMessage($exchange, 'topic', false, $jsonData, 'airtime-uploads');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue