webrtc.models.rtc_session_description#
- class webrtc.models.rtc_session_description.RTCSessionDescription(rtc_session_description_init: webrtc.RTCSessionDescriptionInit)#
Bases:
webrtc.base.WebRTCObjectThe
webrtc.RTCSessionDescriptioninterface describes one end of a connection or potential connection and how it’s configured. EachwebrtcRTCSessionDescriptionconsists 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.RTCSessionDescriptionobjects 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.RTCSessionDescriptionInitis 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 anwebrtc.RTCSessionDescriptionyourself.Warning
Deprecated: Constructor with
webrtc.RTCSessionDescriptionInitis 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.RTCSdpTypeenum.- Type