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’s webrtc.RTCRtpTransceiver.direction property.

Type

webrtc.TransceiverDirection

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 type webrtc.RtpEncodingParameters.

Type

list of webrtc.RtpEncodingParameters

property streams: List[webrtc.MediaStream]#

A list of webrtc.MediaStream objects to add to the transceiver’s webrtc.RTCRtpReceiver; when the remote peer’s webrtc.RTCPeerConnection’s track event occurs, these are the streams that will be specified by that event.

Type

list of webrtc.MediaStream