This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

type

Summary

The type of SDP object this RTCSessionDescription represents.

Property of apis/webrtc/RTCSessionDescriptionapis/webrtc/RTCSessionDescription

Syntax

var result = element.type;
element.type = value;

Return Value

Returns an object of type RTCSdpTypeRTCSdpType

The RTCSdpType enum has the following values:

  • answer - use the SDP object as the final answer.
  • offer - use the SDP object as an offer.
  • pranswer - use the SDP object as a provisional answer.