Search completed in 0.94 seconds.
12 results for "getTracks":
MediaStream.getTracks() - Web APIs
Web › API › MediaStream › getTracks
the gettracks() method of the mediastream interface returns a sequence that represents all the mediastreamtrack objects in this stream's track set, regardless of mediastreamtrack.kind.
... the gettracks() method of the mediastream interface returns a sequence that represents all the mediastreamtrack objects in this stream's track set, regardless of mediastreamtrack.kind.
...f mediastreamtrack.kind.
...And 2 more matches
Signaling and video calling - Web APIs
Web › API › WebRTC API › Signaling and video calling
ntent; if (clickedusername === myusername) { alert("i'm afraid i can't let you talk to yourself.
...ocalstream = null; targetusername = msg.name; createpeerconnection(); var desc = new rtcsessiondescription(msg.sdp); mypeerconnection.setremotedescription(desc).then(function () { return navigator.mediadevices.getusermedia(mediaconstraints); }) .then(function(stream) { localstream = stream; document.getelementbyid("local_video").srcobject = localstream; localstream.gettracks().foreach(track => mypeerconnection.addtrack(track, localstream)); }) .then(function() { return mypeerconnection.createanswer(); }) .then(function(answer) { return mypeerconnection.setlocaldescription(answer); }) .then(function() { var msg = { name: myusername, target: targetusername, type: "video-answer", sdp: mypeerconnection.localdescription ...
... the other peer is displayed in the local browser window!
...And 2 more matches
RTCPeerConnection.addTrack() - Web APIs
Web › API › RTCPeerConnection › addTrack
ou.
...r's direction and tracks being halted using removetrack().
...eived from the remote peer.
...etusermedia() to obtain access to the local webcam and microphone.
Index - Web APIs
Web › API › Index
rack set where mediastreamtrack.kind is audio.
...iastream, mediastream api, method, reference, webrtc, gettrackbyid the mediastream.gettrackbyid() method returns a mediastreamtrack object representing the track with the specified id string.
...m api, method, reference, webrtc, gettrackbyid the mediastream.gettrackbyid() method returns a mediastreamtrack object representing the track with the specified id string.
Using DTMF with WebRTC - Web APIs
Web › API › WebRTC API › Using DTMF
a dtmf tone finishes playing, a tonechange event is delivered to callerpc.
...function.
... tone just finished playing.
MediaStreamTrack.stop() - Web APIs
Web › API › MediaStreamTrack › stop
re using the source, the source may actually be completely stopped.
... by calling stop() on every track on a given <video>.
Recording a media element - Web APIs
Web › API › MediaStream Recording API › Recording a media element
lapsed.
...2 these lines create a new promise which is fulfilled when both of the two promises (stopped and recorded) have resolved.
Using the Screen Capture API - Web APIs
Web › API › Screen Capture API › Using Screen Capture
.
...is called when the "stop capture" button is clicked.
Graceful asynchronous programming with Promises - Learn web development
Learn › JavaScript › Asynchronous › Promises
s, getusermedia() returns a promise which is resolved with the mediastream once it's available.
MediaStream - Web APIs
Web › API › MediaStream
ute set to audio.
RTCPeerConnection.addStream() - Web APIs
Web › API › RTCPeerConnection › addStream
mera to the connection.
Establishing a connection: The WebRTC perfect negotiation pattern - Web APIs
Web › API › WebRTC API › Perfect negotiation
ew of the incoming stream from the remote peer.