From bb3f6ea61474fabe68c6c5a24270d4f7fa45352e Mon Sep 17 00:00:00 2001 From: protsenkovi Date: Fri, 1 Mar 2024 14:01:47 +0400 Subject: [PATCH] Autoplay is laggy. Do not know how to fix. Added button for manual play. --- index.html | 3 ++- main.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index d3c4141..39488bf 100644 --- a/index.html +++ b/index.html @@ -102,7 +102,8 @@
- + +
diff --git a/main.py b/main.py index 00233e9..561dd43 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,7 @@ from aiortc import RTCPeerConnection, RTCSessionDescription import cv2 import json import time - +from datetime import datetime ROOT = "./" @@ -64,6 +64,7 @@ async def answer_video(request): return web.Response(text="Ok") async def index(request): + print(f"{datetime.now()}, {request.remote}") content = open(os.path.join(ROOT, "index.html"), "r").read() return web.Response(content_type="text/html", text=content)