Back to Samples

WebRTC samples createOffer() output

src/content/peerconnection/create-offer/index.html

latest733 B
Original Source

WebRTC samples createOffer() output

This page tests the createOffer() method. It creates a peer connection, then prints out the SDP generated by createOffer(), with the number of desired audio MediaStreamTracks and the checked constraints. Currently, only audio tracks can be added, as there is no programmatic way to generate video tracks. (Web Audio is used to generate the audio tracks.)

Number of audio tracks:1

Offer to receive audio

Offer to receive video

Voice activity detection

Ice restart

Create offerView source on GitHub