|
|
@ -11,7 +11,7 @@ from aiortc import RTCPeerConnection, RTCSessionDescription
|
|
|
|
import cv2
|
|
|
|
import cv2
|
|
|
|
import json
|
|
|
|
import json
|
|
|
|
import time
|
|
|
|
import time
|
|
|
|
|
|
|
|
from datetime import datetime
|
|
|
|
|
|
|
|
|
|
|
|
ROOT = "./"
|
|
|
|
ROOT = "./"
|
|
|
|
|
|
|
|
|
|
|
@ -64,6 +64,7 @@ async def answer_video(request):
|
|
|
|
return web.Response(text="Ok")
|
|
|
|
return web.Response(text="Ok")
|
|
|
|
|
|
|
|
|
|
|
|
async def index(request):
|
|
|
|
async def index(request):
|
|
|
|
|
|
|
|
print(f"{datetime.now()}, {request.remote}")
|
|
|
|
content = open(os.path.join(ROOT, "index.html"), "r").read()
|
|
|
|
content = open(os.path.join(ROOT, "index.html"), "r").read()
|
|
|
|
return web.Response(content_type="text/html", text=content)
|
|
|
|
return web.Response(content_type="text/html", text=content)
|
|
|
|
|
|
|
|
|
|
|
|