diff --git a/app/main.py b/app/main.py index 4955e9c..31654db 100755 --- a/app/main.py +++ b/app/main.py @@ -162,6 +162,7 @@ async def read_output(): print(line_decoded) obj.extract_convert_data(line_decoded) + print(obj.duration) json_data = json.dumps(obj.to_dict()) await queue.put(json_data) diff --git a/app/webs/webs.js b/app/webs/webs.js index f4bd2d6..6545aaf 100644 --- a/app/webs/webs.js +++ b/app/webs/webs.js @@ -1,4 +1,4 @@ -let ws = new WebSocket("ws://192.168.155.110:8000/ws"); +let ws = new WebSocket("ws://127.0.0.1:8000/ws"); let videoQueue = {}; // Hier speichern wir alle laufenden Videos ws.onmessage = function(event) {