connect¶
connect(url: str, key: str, verify_tls: bool = True, connect_timeout: float = 15.0, command_timeout: float = 10.0) -> tgrtmp._core.Client Connect to an RTMP(S) server and start publishing a stream. url is the RTMP application, e.g. rtmps://dc4-1.rtmp.t.me/s/; key is the stream key. Raises RuntimeError if the server refuses the stream.
connect()(
args: ,
kwargs:
)