Backend MP4 conversion (#23)
* ADD conversion queue * ADD RemuxService for MP4 conversion * REMOVE unused conversion queue * REORGANISE Job-related classes * ADD Job stages * REVERT to old commit, using Spring Async instead * ADD asynchronous processing for video tasks * PATCH and streamline progress tracking * ADD asynchronous video processing and job restructuring * REFACTOR job service method * ADD job remux functionality * ADD remuxing endpoint * PATCH complete flag not updating in API response * ADD progress type in frontend * ADD reset functionality for job status * PATCH missing progress bar for subsequent exports * REDESIGN settings box * ADD tracking video file conversion in frontend * PATCH extension bug * REMOVE autowired decorator
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package com.ddf.vodsystem.services;
|
||||
|
||||
import com.ddf.vodsystem.dto.JobStatus;
|
||||
import com.ddf.vodsystem.dto.VideoMetadata;
|
||||
import com.ddf.vodsystem.entities.*;
|
||||
import com.ddf.vodsystem.dto.Job;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
@@ -20,17 +21,18 @@ public class EditService {
|
||||
}
|
||||
|
||||
public void process(String uuid) {
|
||||
jobService.jobReady(uuid);
|
||||
Job job = jobService.getJob(uuid);
|
||||
jobService.processJob(job);
|
||||
}
|
||||
|
||||
public float getProgress(String uuid) {
|
||||
public void convert(String uuid) {
|
||||
Job job = jobService.getJob(uuid);
|
||||
jobService.convertJob(job);
|
||||
}
|
||||
|
||||
if (job.getStatus() == JobStatus.FINISHED) {
|
||||
return 1f;
|
||||
}
|
||||
|
||||
return job.getProgress().getProgress();
|
||||
public JobStatus getProgress(String uuid) {
|
||||
Job job = jobService.getJob(uuid);
|
||||
return job.getStatus();
|
||||
}
|
||||
|
||||
private void validateClipConfig(VideoMetadata videoMetadata) {
|
||||
|
||||
Reference in New Issue
Block a user