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: RTCSessionDescriptionCallbackOptional. An RTCSessionDescription object that is to be passed to an RTCSessionDescription object.
failureCallback
Type: RTCPeerConnectionErrorCallbackOptional. A function to call if creating the offer fails.
options
Type: RTCOfferOptionsOptional. 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.