MCPcopy Create free account
hub / github.com/Wscats/chrome-devtools-cli / resetVideoStreams

Function resetVideoStreams

src/__tests__/MediaStreamRecorder.js:703–717  ·  view source on GitHub ↗
(streams)

Source from the content-addressed store, hash-verified

701 };
702
703 function resetVideoStreams(streams) {
704 videos = [];
705 streams = streams || arrayOfMediaStreams;
706
707 // via: @adrian-ber
708 streams.forEach(function(stream) {
709 if (!stream.getVideoTracks().length) {
710 return;
711 }
712
713 var video = getVideo(stream);
714 video.stream = stream;
715 videos.push(video);
716 });
717 }
718
719 // for debugging
720 this.name = 'MultiStreamsMixer';

Callers 2

getMixedVideoStreamFunction · 0.85
MultiStreamsMixerFunction · 0.85

Calls 1

getVideoFunction · 0.85

Tested by

no test coverage detected