webrtc.models.rtc_session_description#

class webrtc.models.rtc_session_description.RTCSessionDescription(rtc_session_description_init: webrtc.RTCSessionDescriptionInit)#

Bases: webrtc.base.WebRTCObject

The webrtc.RTCSessionDescription interface describes one end of a connection or potential connection and how it’s configured. Each webrtcRTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session.

The process of negotiating a connection between two peers involves exchanging webrtc.RTCSessionDescription objects back and forth, with each description suggesting one combination of connection configuration options that the sender of the description supports. Once the two peers agree upon a configuration for the connection, negotiation is complete.

Note

Note: Constructor with webrtc.RTCSessionDescriptionInit is no longer necessary, however; RTCPeerConnection.setLocalDescription() and other methods which take SDP as input now directly accept an object conforming to the :obj:webrtc.RTCSessionDescriptionInit` object, so you don’t have to instantiate an webrtc.RTCSessionDescription yourself.

Warning

Deprecated: Constructor with webrtc.RTCSessionDescriptionInit is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes.

property sdp#

A string containing a SDP message describing the session.

Type

str

property type: webrtc.RTCSdpType#

A member of the webrtc.RTCSdpType enum.

Type

webrtc.RTCSdpType