webrtc.interfaces.rtc_rtp_transceiver#
- class webrtc.interfaces.rtc_rtp_transceiver.RTCRtpTransceiver(native_obj=None)#
Bases:
webrtc.base.WebRTCObjectThe WebRTC interface
webrtc.RTCRtpTransceiverdescribes a permanent pairing of anwebrtc.RTCRtpSenderand anwebrtc.RTCRtpReceiver, along with some shared state.- property currentDirection: Optional[webrtc.TransceiverDirection]#
Alias for
current_direction
- property current_direction: Optional[webrtc.TransceiverDirection]#
A member of
webrtc.TransceiverDirectionenum, indicating the current directionality of the transceiver.
- property direction: webrtc.TransceiverDirection#
A member of
webrtc.TransceiverDirectionenum, indicating the transceiver’s preferred direction.Note
The transceiver’s current direction is indicated by the
currentDirectionproperty.
- property mid: Optional[str]#
A
strwhich uniquely identifies the pairing of source and destination of the transceiver’s stream. Its value is taken from the media ID of the SDP m-line. This value isNoneif negotiation has not completed.
- property receiver: webrtc.RTCRtpReceiver#
A
webrtc.RTCRtpReceiverobject which is responsible for receiving and decoding incoming media data whose media ID is the same as the current value ofmid.
- property sender: webrtc.RTCRtpSender#
A
webrtc.RTCRtpSenderobject used to encode and send media whose media ID matches the current value ofmid.
- stop() None#
Permanently stops the transceiver by stopping both the associated
webrtc.RTCRtpSenderandwebrtc.RTCRtpReceiver.Note
The
stoppedproperty was provided to returnTrueif the connection is stopped. That property has been deprecated and will be removed at some point. Instead, check the value ofcurrentDirection. If it’swebrtc.TransceiverDirection.stopped, the transceiver has been stopped.