createAnswer method
JSPromise<RTCSessionDescriptionInit?>
createAnswer([
- JSObject optionsOrSuccessCallback,
- RTCPeerConnectionErrorCallback failureCallback
The createAnswer()
method of the RTCPeerConnection interface
creates an answer to an offer received from a remote peer during the
offer/answer negotiation of a WebRTC connection.
The answer contains information about any media already attached to the
session, codecs and options supported by the browser, and any candidates
already gathered.
The answer is delivered to the returned Promise
, and should then be sent
to the source of the offer to continue the negotiation process.
Implementation
external JSPromise<RTCSessionDescriptionInit?> createAnswer([
JSObject optionsOrSuccessCallback,
RTCPeerConnectionErrorCallback failureCallback,
]);