|
3 | 3 | import typing
|
4 | 4 |
|
5 | 5 | __all__ = [
|
| 6 | + "CallbackPythonWebRTCException", |
6 | 7 | "MediaStream",
|
7 | 8 | "MediaStreamSourceState",
|
8 | 9 | "MediaStreamTrack",
|
9 | 10 | "MediaStreamTrackState",
|
10 | 11 | "PeerConnectionFactory",
|
| 12 | + "PythonWebRTCException", |
| 13 | + "PythonWebRTCExceptionBase", |
11 | 14 | "RTCAudioSource",
|
| 15 | + "RTCCallbackException", |
| 16 | + "RTCException", |
12 | 17 | "RTCIceConnectionState",
|
13 | 18 | "RTCIceGatheringState",
|
14 | 19 | "RTCOnDataEvent",
|
|
18 | 23 | "RTCSdpType",
|
19 | 24 | "RTCSessionDescription",
|
20 | 25 | "RTCSessionDescriptionInit",
|
| 26 | + "SdpParseException", |
21 | 27 | "answer",
|
22 | 28 | "checking",
|
23 | 29 | "closed",
|
|
42 | 48 | ]
|
43 | 49 |
|
44 | 50 |
|
| 51 | +class CallbackPythonWebRTCException(): |
| 52 | + def what(self) -> str: ... |
| 53 | + pass |
45 | 54 | class MediaStream():
|
46 | 55 | def addTrack(self, arg0: MediaStreamTrack) -> None: ...
|
47 | 56 | def clone(self) -> MediaStream: ...
|
@@ -170,11 +179,20 @@ def getOrCreateDefault() -> PeerConnectionFactory: ...
|
170 | 179 | @staticmethod
|
171 | 180 | def release() -> None: ...
|
172 | 181 | pass
|
| 182 | +class PythonWebRTCExceptionBase(Exception, BaseException): |
| 183 | + pass |
| 184 | +class PythonWebRTCException(PythonWebRTCExceptionBase, Exception, BaseException): |
| 185 | + pass |
173 | 186 | class RTCAudioSource():
|
174 | 187 | def __init__(self) -> None: ...
|
175 | 188 | def createTrack(self) -> MediaStreamTrack: ...
|
176 | 189 | def onData(self, arg0: RTCOnDataEvent) -> None: ...
|
177 | 190 | pass
|
| 191 | +class RTCCallbackException(): |
| 192 | + def what(self) -> str: ... |
| 193 | + pass |
| 194 | +class RTCException(PythonWebRTCExceptionBase, Exception, BaseException): |
| 195 | + pass |
178 | 196 | class RTCIceConnectionState():
|
179 | 197 | """
|
180 | 198 | Members:
|
@@ -306,10 +324,10 @@ def __init__(self) -> None: ...
|
306 | 324 | @staticmethod
|
307 | 325 | def addTrack(*args, **kwargs) -> typing.Any: ...
|
308 | 326 | def close(self) -> None: ...
|
309 |
| - def createAnswer(self, arg0: typing.Callable[[RTCSessionDescription], None]) -> None: ... |
310 |
| - def createOffer(self, arg0: typing.Callable[[RTCSessionDescription], None]) -> None: ... |
311 |
| - def setLocalDescription(self, arg0: typing.Callable[[], None], arg1: RTCSessionDescription) -> None: ... |
312 |
| - def setRemoteDescription(self, arg0: typing.Callable[[], None], arg1: RTCSessionDescription) -> None: ... |
| 327 | + def createAnswer(self, arg0: typing.Callable[[RTCSessionDescription], None], arg1: typing.Callable[[CallbackPythonWebRTCException], None]) -> None: ... |
| 328 | + def createOffer(self, arg0: typing.Callable[[RTCSessionDescription], None], arg1: typing.Callable[[CallbackPythonWebRTCException], None]) -> None: ... |
| 329 | + def setLocalDescription(self, arg0: typing.Callable[[], None], arg1: typing.Callable[[CallbackPythonWebRTCException], None], arg2: RTCSessionDescription) -> None: ... |
| 330 | + def setRemoteDescription(self, arg0: typing.Callable[[], None], arg1: typing.Callable[[CallbackPythonWebRTCException], None], arg2: RTCSessionDescription) -> None: ... |
313 | 331 | pass
|
314 | 332 | class RTCPeerConnectionState():
|
315 | 333 | """
|
@@ -430,6 +448,8 @@ def type(self) -> RTCSdpType:
|
430 | 448 | def type(self, arg0: RTCSdpType) -> None:
|
431 | 449 | pass
|
432 | 450 | pass
|
| 451 | +class SdpParseException(PythonWebRTCExceptionBase, Exception, BaseException): |
| 452 | + pass |
433 | 453 | def getUserMedia() -> MediaStream:
|
434 | 454 | pass
|
435 | 455 | def ping() -> None:
|
|
0 commit comments