allow specifying frame processor names

This commit is contained in:
Aleix Conchillo Flaqué
2024-06-12 11:32:33 -07:00
parent f65f566829
commit 83f69e02fd
9 changed files with 51 additions and 36 deletions

View File

@@ -41,7 +41,12 @@ class TransportParams(BaseModel):
class BaseTransport(ABC):
def __init__(self, loop: asyncio.AbstractEventLoop | None):
def __init__(self,
input_name: str | None = None,
output_name: str | None = None,
loop: asyncio.AbstractEventLoop | None = None):
self._input_name = input_name
self._output_name = output_name
self._loop = loop or asyncio.get_running_loop()
self._event_handlers: dict = {}