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.

createAnswer

Summary

Creates a session description compatible with the remote configuration.

Method of apis/webrtc/RTCPeerConnectionapis/webrtc/RTCPeerConnection

Syntax

 element.createAnswer();

Return Value

No return value

Usage

 Generates an SDP answer with the supported configuration for the session that is compatible with the parameters in the remote configuration. Like createOffer, the returned blob contains descriptions of the local MediaStreams attached to this RTCPeerConnection, the codec/RTP/RTCP options negotiated for this session, and any candidates that have been gathered by the ICE Agent. The constraints parameter may be supplied to provide additional control over the generated answer.