add processVideo env
This commit is contained in:
parent
3605a3f3a5
commit
170479b585
8 changed files with 89 additions and 27 deletions
|
@ -24,7 +24,10 @@ class FileUploader {
|
|||
this.dropArea = document.getElementById('dropArea');
|
||||
this.gallery = document.getElementById('gallery');
|
||||
this.setupEventListeners();
|
||||
this.setupProgressUpdates(); // SSE logic for transcoding
|
||||
// Only set up SSE if we're processing videos
|
||||
if (document.body.dataset.processVideo === 'true') {
|
||||
this.setupProgressUpdates();
|
||||
}
|
||||
}
|
||||
|
||||
setupEventListeners() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue