Module livekit.rtc.frame_processor
Classes
class FrameProcessor-
Expand source code
class FrameProcessor(Generic[T], ABC): @property @abstractmethod def enabled(self) -> bool: ... @enabled.setter @abstractmethod def enabled(self, value: bool) -> None: ... def _on_stream_info_updated( self, *, room_name: str, participant_identity: str, publication_sid: str, ) -> None: ... def _on_credentials_updated(self, *, token: str, url: str) -> None: ... @abstractmethod def _process(self, frame: T) -> T: ... @abstractmethod def _close(self) -> None: ...Abstract base class for generic types.
On Python 3.12 and newer, generic classes implicitly inherit from Generic when they declare a parameter list after the class's name::
class Mapping[KT, VT]: def __getitem__(self, key: KT) -> VT: ... # Etc.On older versions of Python, however, generic classes have to explicitly inherit from Generic.
After a class has been declared to be generic, it can then be used as follows::
def lookup_name[KT, VT](mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return defaultAncestors
- typing.Generic
- abc.ABC
Instance variables
prop enabled : bool-
Expand source code
@property @abstractmethod def enabled(self) -> bool: ...