5
5
__all__ = [
6
6
"CallbackPythonWebRTCException" ,
7
7
"CricketIceGatheringState" ,
8
+ "DtlsTransportState" ,
8
9
"MediaStream" ,
9
10
"MediaStreamSourceState" ,
10
11
"MediaStreamTrack" ,
11
12
"MediaStreamTrackState" ,
13
+ "MediaType" ,
12
14
"PeerConnectionFactory" ,
13
15
"PythonWebRTCException" ,
14
16
"PythonWebRTCExceptionBase" ,
15
17
"RTCAudioSource" ,
16
18
"RTCCallbackException" ,
19
+ "RTCDtlsTransport" ,
17
20
"RTCException" ,
18
21
"RTCIceComponent" ,
19
22
"RTCIceConnectionState" ,
32
35
"RTCSessionDescription" ,
33
36
"RTCSessionDescriptionInit" ,
34
37
"RTP" ,
38
+ "RtpEncodingParameters" ,
39
+ "RtpTransceiverInit" ,
35
40
"SdpParseException" ,
36
41
"TransceiverDirection" ,
37
42
"answer" ,
43
+ "audio" ,
38
44
"checking" ,
39
45
"closed" ,
40
46
"complete" ,
43
49
"connecting" ,
44
50
"controlled" ,
45
51
"controlling" ,
52
+ "data" ,
46
53
"disconnected" ,
47
54
"ended" ,
48
55
"failed" ,
62
69
"sendonly" ,
63
70
"sendrecv" ,
64
71
"stopped" ,
65
- "unknown"
72
+ "unknown" ,
73
+ "unsupported" ,
74
+ "video"
66
75
]
67
76
68
77
@@ -103,6 +112,46 @@ def value(self) -> int:
103
112
gathering : wrtc .CricketIceGatheringState # value = <CricketIceGatheringState.gathering: 1>
104
113
new : wrtc .CricketIceGatheringState # value = <CricketIceGatheringState.new: 0>
105
114
pass
115
+ class DtlsTransportState ():
116
+ """
117
+ Members:
118
+
119
+ new
120
+
121
+ connecting
122
+
123
+ connected
124
+
125
+ closed
126
+
127
+ failed
128
+ """
129
+ def __eq__ (self , other : object ) -> bool : ...
130
+ def __getstate__ (self ) -> int : ...
131
+ def __hash__ (self ) -> int : ...
132
+ def __index__ (self ) -> int : ...
133
+ def __init__ (self , value : int ) -> None : ...
134
+ def __int__ (self ) -> int : ...
135
+ def __ne__ (self , other : object ) -> bool : ...
136
+ def __repr__ (self ) -> str : ...
137
+ def __setstate__ (self , state : int ) -> None : ...
138
+ @property
139
+ def name (self ) -> str :
140
+ """
141
+ :type: str
142
+ """
143
+ @property
144
+ def value (self ) -> int :
145
+ """
146
+ :type: int
147
+ """
148
+ __members__ : dict # value = {'new': <DtlsTransportState.new: 0>, 'connecting': <DtlsTransportState.connecting: 1>, 'connected': <DtlsTransportState.connected: 2>, 'closed': <DtlsTransportState.closed: 3>, 'failed': <DtlsTransportState.failed: 4>}
149
+ closed : wrtc .DtlsTransportState # value = <DtlsTransportState.closed: 3>
150
+ connected : wrtc .DtlsTransportState # value = <DtlsTransportState.connected: 2>
151
+ connecting : wrtc .DtlsTransportState # value = <DtlsTransportState.connecting: 1>
152
+ failed : wrtc .DtlsTransportState # value = <DtlsTransportState.failed: 4>
153
+ new : wrtc .DtlsTransportState # value = <DtlsTransportState.new: 0>
154
+ pass
106
155
class MediaStream ():
107
156
def addTrack (self , arg0 : MediaStreamTrack ) -> None : ...
108
157
def clone (self ) -> MediaStream : ...
@@ -176,9 +225,9 @@ def id(self) -> str:
176
225
:type: str
177
226
"""
178
227
@property
179
- def kind (self ) -> str :
228
+ def kind (self ) -> MediaType :
180
229
"""
181
- :type: str
230
+ :type: MediaType
182
231
"""
183
232
@property
184
233
def muted (self ) -> bool :
@@ -222,6 +271,43 @@ def value(self) -> int:
222
271
ended : wrtc .MediaStreamTrackState # value = <MediaStreamTrackState.ended: 1>
223
272
live : wrtc .MediaStreamTrackState # value = <MediaStreamTrackState.live: 0>
224
273
pass
274
+ class MediaType ():
275
+ """
276
+ Members:
277
+
278
+ audio
279
+
280
+ video
281
+
282
+ data
283
+
284
+ unsupported
285
+ """
286
+ def __eq__ (self , other : object ) -> bool : ...
287
+ def __getstate__ (self ) -> int : ...
288
+ def __hash__ (self ) -> int : ...
289
+ def __index__ (self ) -> int : ...
290
+ def __init__ (self , value : int ) -> None : ...
291
+ def __int__ (self ) -> int : ...
292
+ def __ne__ (self , other : object ) -> bool : ...
293
+ def __repr__ (self ) -> str : ...
294
+ def __setstate__ (self , state : int ) -> None : ...
295
+ @property
296
+ def name (self ) -> str :
297
+ """
298
+ :type: str
299
+ """
300
+ @property
301
+ def value (self ) -> int :
302
+ """
303
+ :type: int
304
+ """
305
+ __members__ : dict # value = {'audio': <MediaType.audio: 0>, 'video': <MediaType.video: 1>, 'data': <MediaType.data: 2>, 'unsupported': <MediaType.unsupported: 3>}
306
+ audio : wrtc .MediaType # value = <MediaType.audio: 0>
307
+ data : wrtc .MediaType # value = <MediaType.data: 2>
308
+ unsupported : wrtc .MediaType # value = <MediaType.unsupported: 3>
309
+ video : wrtc .MediaType # value = <MediaType.video: 1>
310
+ pass
225
311
class PeerConnectionFactory ():
226
312
def __init__ (self ) -> None : ...
227
313
@staticmethod
@@ -243,6 +329,18 @@ def onData(self, arg0: RTCOnDataEvent) -> None: ...
243
329
class RTCCallbackException ():
244
330
def what (self ) -> str : ...
245
331
pass
332
+ class RTCDtlsTransport ():
333
+ @property
334
+ def iceTransport (self ) -> RTCIceTransport :
335
+ """
336
+ :type: RTCIceTransport
337
+ """
338
+ @property
339
+ def state (self ) -> DtlsTransportState :
340
+ """
341
+ :type: DtlsTransportState
342
+ """
343
+ pass
246
344
class RTCException (PythonWebRTCExceptionBase , Exception , BaseException ):
247
345
pass
248
346
class RTCIceComponent ():
@@ -506,14 +604,20 @@ def sampleRate(self, arg0: int) -> None:
506
604
pass
507
605
class RTCPeerConnection ():
508
606
def __init__ (self ) -> None : ...
509
- @staticmethod
510
- def addTrack (* args , ** kwargs ) -> typing .Any : ...
607
+ @typing .overload
608
+ def addTrack (self , arg0 : MediaStreamTrack , arg1 : typing .List [MediaStream ]) -> RTCRtpSender : ...
609
+ @typing .overload
610
+ def addTrack (self , arg0 : MediaStreamTrack , arg1 : typing .Optional [MediaStream ]) -> RTCRtpSender : ...
611
+ @typing .overload
612
+ def addTransceiver (self , arg0 : MediaStreamTrack , arg1 : typing .Optional [RtpTransceiverInit ]) -> RTCRtpTransceiver : ...
613
+ @typing .overload
614
+ def addTransceiver (self , arg0 : MediaType , arg1 : typing .Optional [RtpTransceiverInit ]) -> RTCRtpTransceiver : ...
511
615
def close (self ) -> None : ...
512
616
def createAnswer (self , arg0 : typing .Callable [[RTCSessionDescription ], None ], arg1 : typing .Callable [[CallbackPythonWebRTCException ], None ]) -> None : ...
513
617
def createOffer (self , arg0 : typing .Callable [[RTCSessionDescription ], None ], arg1 : typing .Callable [[CallbackPythonWebRTCException ], None ]) -> None : ...
514
- def getReceivers (self ) -> typing .List [python_webrtc :: RTCRtpReceiver ]: ...
515
- def getSenders (self ) -> typing .List [python_webrtc :: RTCRtpSender ]: ...
516
- def getTransceivers (self ) -> typing .List [python_webrtc :: RTCRtpTransceiver ]: ...
618
+ def getReceivers (self ) -> typing .List [RTCRtpReceiver ]: ...
619
+ def getSenders (self ) -> typing .List [RTCRtpSender ]: ...
620
+ def getTransceivers (self ) -> typing .List [RTCRtpTransceiver ]: ...
517
621
def setLocalDescription (self , arg0 : typing .Callable [[], None ], arg1 : typing .Callable [[CallbackPythonWebRTCException ], None ], arg2 : RTCSessionDescription ) -> None : ...
518
622
def setRemoteDescription (self , arg0 : typing .Callable [[], None ], arg1 : typing .Callable [[CallbackPythonWebRTCException ], None ], arg2 : RTCSessionDescription ) -> None : ...
519
623
pass
@@ -566,13 +670,23 @@ def track(self) -> MediaStreamTrack:
566
670
"""
567
671
:type: MediaStreamTrack
568
672
"""
673
+ @property
674
+ def transport (self ) -> typing .Optional [RTCDtlsTransport ]:
675
+ """
676
+ :type: typing.Optional[RTCDtlsTransport]
677
+ """
569
678
pass
570
679
class RTCRtpSender ():
571
680
@property
572
681
def track (self ) -> typing .Optional [MediaStreamTrack ]:
573
682
"""
574
683
:type: typing.Optional[MediaStreamTrack]
575
684
"""
685
+ @property
686
+ def transport (self ) -> typing .Optional [RTCDtlsTransport ]:
687
+ """
688
+ :type: typing.Optional[RTCDtlsTransport]
689
+ """
576
690
pass
577
691
class RTCRtpTransceiver ():
578
692
def stop (self ) -> None : ...
@@ -679,6 +793,84 @@ def type(self) -> RTCSdpType:
679
793
def type (self , arg0 : RTCSdpType ) -> None :
680
794
pass
681
795
pass
796
+ class RtpEncodingParameters ():
797
+ def __init__ (self ) -> None : ...
798
+ @property
799
+ def active (self ) -> bool :
800
+ """
801
+ :type: bool
802
+ """
803
+ @active .setter
804
+ def active (self , arg0 : bool ) -> None :
805
+ pass
806
+ @property
807
+ def maxBitrate (self ) -> typing .Optional [int ]:
808
+ """
809
+ :type: typing.Optional[int]
810
+ """
811
+ @maxBitrate .setter
812
+ def maxBitrate (self , arg0 : typing .Optional [int ]) -> None :
813
+ pass
814
+ @property
815
+ def maxFramerate (self ) -> typing .Optional [float ]:
816
+ """
817
+ :type: typing.Optional[float]
818
+ """
819
+ @maxFramerate .setter
820
+ def maxFramerate (self , arg0 : typing .Optional [float ]) -> None :
821
+ pass
822
+ @property
823
+ def rid (self ) -> str :
824
+ """
825
+ :type: str
826
+ """
827
+ @rid .setter
828
+ def rid (self , arg0 : str ) -> None :
829
+ pass
830
+ @property
831
+ def scaleResolutionDownBy (self ) -> typing .Optional [float ]:
832
+ """
833
+ :type: typing.Optional[float]
834
+ """
835
+ @scaleResolutionDownBy .setter
836
+ def scaleResolutionDownBy (self , arg0 : typing .Optional [float ]) -> None :
837
+ pass
838
+ @property
839
+ def ssrc (self ) -> typing .Optional [int ]:
840
+ """
841
+ :type: typing.Optional[int]
842
+ """
843
+ @ssrc .setter
844
+ def ssrc (self , arg0 : typing .Optional [int ]) -> None :
845
+ pass
846
+ pass
847
+ class RtpTransceiverInit ():
848
+ def __init__ (self ) -> None : ...
849
+ @property
850
+ def direction (self ) -> TransceiverDirection :
851
+ """
852
+ :type: TransceiverDirection
853
+ """
854
+ @direction .setter
855
+ def direction (self , arg0 : TransceiverDirection ) -> None :
856
+ pass
857
+ @property
858
+ def sendEncodings (self ) -> typing .List [webrtc ::RtpEncodingParameters ]:
859
+ """
860
+ :type: typing.List[webrtc::RtpEncodingParameters]
861
+ """
862
+ @sendEncodings .setter
863
+ def sendEncodings (self , arg0 : typing .List [webrtc ::RtpEncodingParameters ]) -> None :
864
+ pass
865
+ @property
866
+ def streamIds (self ) -> typing .List [str ]:
867
+ """
868
+ :type: typing.List[str]
869
+ """
870
+ @streamIds .setter
871
+ def streamIds (self , arg0 : typing .List [str ]) -> None :
872
+ pass
873
+ pass
682
874
class SdpParseException (PythonWebRTCExceptionBase , Exception , BaseException ):
683
875
pass
684
876
class TransceiverDirection ():
@@ -728,24 +920,26 @@ def ping() -> None:
728
920
RTCP : wrtc .RTCIceComponent # value = <RTCIceComponent.RTCP: 1>
729
921
RTP : wrtc .RTCIceComponent # value = <RTCIceComponent.RTP: 0>
730
922
answer : wrtc .RTCSdpType # value = <RTCSdpType.answer: 2>
923
+ audio : wrtc .MediaType # value = <MediaType.audio: 0>
731
924
checking : wrtc .RTCIceTransportState # value = <RTCIceTransportState.checking: 1>
732
- closed : wrtc .RTCIceTransportState # value = <RTCIceTransportState .closed: 6 >
925
+ closed : wrtc .DtlsTransportState # value = <DtlsTransportState .closed: 3 >
733
926
complete : wrtc .CricketIceGatheringState # value = <CricketIceGatheringState.complete: 2>
734
927
completed : wrtc .RTCIceTransportState # value = <RTCIceTransportState.completed: 3>
735
- connected : wrtc .RTCIceTransportState # value = <RTCIceTransportState .connected: 2>
736
- connecting : wrtc .RTCPeerConnectionState # value = <RTCPeerConnectionState .connecting: 1>
928
+ connected : wrtc .DtlsTransportState # value = <DtlsTransportState .connected: 2>
929
+ connecting : wrtc .DtlsTransportState # value = <DtlsTransportState .connecting: 1>
737
930
controlled : wrtc .RTCIceRole # value = <RTCIceRole.controlled: 1>
738
931
controlling : wrtc .RTCIceRole # value = <RTCIceRole.controlling: 0>
932
+ data : wrtc .MediaType # value = <MediaType.data: 2>
739
933
disconnected : wrtc .RTCIceTransportState # value = <RTCIceTransportState.disconnected: 5>
740
934
ended : wrtc .MediaStreamSourceState # value = <MediaStreamSourceState.ended: 2>
741
- failed : wrtc .RTCIceTransportState # value = <RTCIceTransportState .failed: 4>
935
+ failed : wrtc .DtlsTransportState # value = <DtlsTransportState .failed: 4>
742
936
gathering : wrtc .CricketIceGatheringState # value = <CricketIceGatheringState.gathering: 1>
743
937
inactive : wrtc .TransceiverDirection # value = <TransceiverDirection.inactive: 3>
744
938
initializing : wrtc .MediaStreamSourceState # value = <MediaStreamSourceState.initializing: 0>
745
939
live : wrtc .MediaStreamSourceState # value = <MediaStreamSourceState.live: 1>
746
940
max : wrtc .RTCIceConnectionState # value = <RTCIceConnectionState.max: 7>
747
941
muted : wrtc .MediaStreamSourceState # value = <MediaStreamSourceState.muted: 3>
748
- new : wrtc .RTCIceTransportState # value = <RTCIceTransportState .new: 0>
942
+ new : wrtc .DtlsTransportState # value = <DtlsTransportState .new: 0>
749
943
offer : wrtc .RTCSdpType # value = <RTCSdpType.offer: 0>
750
944
pranswer : wrtc .RTCSdpType # value = <RTCSdpType.pranswer: 1>
751
945
recvonly : wrtc .TransceiverDirection # value = <TransceiverDirection.recvonly: 2>
@@ -754,3 +948,5 @@ def ping() -> None:
754
948
sendrecv : wrtc .TransceiverDirection # value = <TransceiverDirection.sendrecv: 0>
755
949
stopped : wrtc .TransceiverDirection # value = <TransceiverDirection.stopped: 4>
756
950
unknown : wrtc .RTCIceRole # value = <RTCIceRole.unknown: 2>
951
+ unsupported : wrtc .MediaType # value = <MediaType.unsupported: 3>
952
+ video : wrtc .MediaType # value = <MediaType.video: 1>
0 commit comments