MCPcopy
hub / github.com/webrtc/samples / createOffer

Function createOffer

src/content/peerconnection/munge-sdp/js/main.js:113–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111}
112
113async function createOffer() {
114 try {
115 const offer = await pc1.createOffer(offerOptions);
116 gotDescription1(offer);
117 } catch (e) {
118 onCreateSessionDescriptionError(e);
119 }
120}
121
122function onCreateSessionDescriptionError(error) {
123 console.log(`Failed to create session description: ${error.toString()}`);

Callers

nothing calls this directly

Calls 3

createOfferMethod · 0.80
gotDescription1Function · 0.70

Tested by

no test coverage detected