type property

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

The type property returns the type of the description.

This property is read-only.

Syntax

JavaScript
type = object.type

 

Property values

Type: RTCSdpType

Remarks

The RTCSdpType enum (the type of the type property) has the following enumerations:

Member Description
"offer" A description must be treated as an SDP offer.
"pranswer" A description must be treated as an SDP answer, but not a final answer.
"answer" A description must be treated as an SDP final answer, and the offer-answer exchange must be considered complete.

 

See also

RTCSessionDescription