Queue Java Script angefangen

This commit is contained in:
Eduard Wisch 2025-04-24 22:05:36 +02:00
parent a8968a2ebd
commit d25fe77353
3 changed files with 5 additions and 4 deletions

View file

@ -3,10 +3,10 @@ log_level: DEBUG
log_rotation: time log_rotation: time
path_file: "media_path.yaml" path_file: "media_path.yaml"
server_ip: "0.0.0.0" server_ip: "0.0.0.0"
extern_http_url: localhost extern_http_url: localhost:8080
webserver_port: 8080 webserver_port: 8080
webserver_https: 0 webserver_https: 0
extern_websocket_url: localhost extern_websocket_url: localhost:8000
websocket_port: 8000 websocket_port: 8000
websocket_https: 0 websocket_https: 0
task_max: 1 task_max: 1

View file

@ -51,6 +51,7 @@ class Server:
if data.get("data_path"): if data.get("data_path"):
self.obj_path.receive_paths(data.get("data_path")) self.obj_path.receive_paths(data.get("data_path"))
await self.send_websocket(self.obj_path.queue_path_to_dict())
if var_convert_active == False and self.yaml['autostart']: if var_convert_active == False and self.yaml['autostart']:
await self.obj_convert.snake_waiting() await self.obj_convert.snake_waiting()

View file

@ -103,8 +103,8 @@ function createVideoElement(packet){
function createWaitingSnake(packet){ function createWaitingSnake(packet){
const queue = document.getElementById('queue'); const queue = document.getElementById('queue');
Object.keys(packet.data_convert).forEach(key => { Object.keys(packet.data_queue).forEach(key => {
const video = packet.data_convert[key]; const video = packet.data_queue[key];
if(!videoActive[key]){ if(!videoActive[key]){
const card = document.createElement('div'); const card = document.createElement('div');