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

Function getDevices

src/content/devices/input-output/js/main.js:24–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22audioOutputSelect.disabled = !('sinkId' in HTMLMediaElement.prototype);
23
24function getDevices() {
25 navigator.mediaDevices.enumerateDevices().then(gotDevices, handleError);
26}
27
28function gotDevices(deviceInfos) {
29 console.log('gotDevices', deviceInfos);

Callers 2

gotStreamFunction · 0.85
main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected