RTCSessionDescription

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

MDN Reference

Constructors

Link copied to clipboard
constructor(init: RTCSessionDescriptionInit)

Properties

Link copied to clipboard
val sdp: String

The property RTCSessionDescription.sdp is a read-only string containing the SDP which describes the session.

Link copied to clipboard

The property RTCSessionDescription.type is a read-only string value which describes the description's type.

Functions

Link copied to clipboard

The RTCSessionDescription.toJSON() method generates a JSON description of the object. Both properties, type and sdp, are contained in the generated JSON.