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
open external val sdp: String

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

Link copied to clipboard
open external val type: RTCSdpType

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

Functions

Link copied to clipboard
open external fun toJSON(): RTCSessionDescriptionInit

The toJSON() method of the RTCSessionDescription interface returns a JSON-serializable plain object representing the RTCSessionDescription object.