fix: remove unused settings and utils files (#522)

* fix: remove unused settings and utils files

* fix: remove migration done

* fix: remove outdated scripts

* fix: removing deployment of hermes, not used anymore

* fix: partially remove secret, still have to understand frontend.
This commit is contained in:
2025-07-31 17:45:48 -06:00
committed by GitHub
parent 4ee19ed015
commit ad56165b54
17 changed files with 8 additions and 1046 deletions

View File

@@ -1,14 +1,13 @@
import asyncio
import time
import uuid
from os import environ
import httpx
import stamina
from aiortc import RTCPeerConnection, RTCSessionDescription
from aiortc.contrib.media import MediaPlayer, MediaRelay
from reflector.logger import logger
from reflector.settings import settings
class StreamClient:
@@ -43,8 +42,9 @@ class StreamClient:
else:
if self.relay is None:
self.relay = MediaRelay()
audio_device_id = int(environ.get("AUDIO_AV_FOUNDATION_DEVICE_ID", 1))
self.player = MediaPlayer(
f":{settings.AUDIO_AV_FOUNDATION_DEVICE_ID}",
f":{audio_device_id}",
format="avfoundation",
options={"channels": "2"},
)