webrtc.models.rtp_transceiver_init#
- class webrtc.models.rtp_transceiver_init.RtpTransceiverInit(direction: Optional[webrtc.RtpTransceiverDirection] = None, send_encodings: Optional[List[webrtc.RtpEncodingParameters]] = None, streams: Optional[List[webrtc.MediaStream]] = None)#
Bases:
webrtc.base.WebRTCObjectA model for specifying any options when creating the new transceiver.
- property direction: webrtc.TransceiverDirection#
The new transceiver’s preferred directionality. This value is used to initialize the new
webrtc.RTCRtpTransceiverobject’swebrtc.RTCRtpTransceiver.directionproperty.
- property sendEncodings: List[webrtc.RtpEncodingParameters]#
Alias for
send_encodings
- property send_encodings: List[webrtc.RtpEncodingParameters]#
A list of encodings to allow when sending RTP media from the
webrtc.RTCRtpSender. Each entry is of typewebrtc.RtpEncodingParameters.- Type
listofwebrtc.RtpEncodingParameters
- property streams: List[webrtc.MediaStream]#
A list of
webrtc.MediaStreamobjects to add to the transceiver’swebrtc.RTCRtpReceiver; when the remote peer’swebrtc.RTCPeerConnection’s track event occurs, these are the streams that will be specified by that event.- Type
listofwebrtc.MediaStream