Search completed in 0.92 seconds.
5 results for "MediaConstraints":
Signaling and video calling - Web APIs
Web › API › WebRTC API › Signaling and video calling
ement.
...connection) { alert("you can't start a call because you already have one open!"); } else { var clickedusername = evt.target.textcontent; if (clickedusername === myusername) { alert("i'm afraid i can't let you talk to yourself.
...g the stream with audio from the user's microphone and video from their webcam.
...s microphone and webcam to that.
Using DTMF with WebRTC - Web APIs
Web › API › WebRTC API › Using DTMF
let's take a look at the javascript code next.
...audio to the connection.
... some browsers have not yet implemented rtcpeerconnection.addtrack(), therefore requiring the use of the obsolete addstream() method, we use this boolean to determine whether or not the user agent supports addtrack(); if it doesn't, we'll fall back to addstream().
...= handlecallersignalingstatechangeevent; callerpc.onicegatheringstatechange = handlecallergatheringstatechangeevent; receiverpc = new rtcpeerconnection(); receiverpc.onicecandidate = handlereceivericeevent; if (hasaddtrack) { receiverpc.ontrack = handlereceivertrackevent; } else { receiverpc.onaddstream = handlereceiveraddstreamevent; } navigator.mediadevices.getusermedia(mediaconstraints) .then(gotstream) .catch(err => log(err.message)); } after creating the rtcpeerconnection for the caller (callerpc), we look to see if it has an addtrack() method.
RTCPeerConnection.addTrack() - Web APIs
Web › API › RTCPeerConnection › addTrack
he new transceiver's direction is set to "sendrecv".
...omes from the handlevideooffermsg() method there, which is called when an offer message is received from the remote peer.
Capabilities, constraints, and settings - Web APIs
Web › API › Media Streams API › Constraints
ints are applied at getusermedia() time, asking for an ideal set of options with fallbacks for the video.
RTCPeerConnection.setRemoteDescription() - Web APIs
Web › API › RTCPeerConnection › setRemoteDescription
fer received from the remote peer.