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.WebRTCObject
A 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.RTCRtpTransceiver
object’swebrtc.RTCRtpTransceiver.direction
property.
- 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
list
ofwebrtc.RtpEncodingParameters
- property streams: List[webrtc.MediaStream]#
A list of
webrtc.MediaStream
objects 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
list
ofwebrtc.MediaStream