createOffer method
[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 createOffer method creates an SDP offer. This occurs during the offer/answer negotiation of a connection.
Syntax
var retval = createOffer.createOffer(successCallback, failureCallback, options);Parameters
- successCallback
-
Type: RTCSessionDescriptionCallback
Optional. An RTCSessionDescription object that is to be passed to an RTCSessionDescription object.
- failureCallback
-
Type: RTCPeerConnectionErrorCallback
Optional. A function to call if creating the offer fails.
- options
-
Type: RTCOfferOptions
Optional. An RTCOfferOptions dictionary that gives the offer options.
Return value
Type: promise<RTCSessionDescription>
A promise that resolves to an RTCSessionDescription object that contains the new offer.
See also