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

Function getVideo

src/__tests__/MediaStreamRecorder.js:618–636  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

616 }
617
618 function getVideo(stream) {
619 var video = document.createElement('video');
620
621 if ('srcObject' in video) {
622 video.srcObject = stream;
623 } else {
624 video.src = URL.createObjectURL(stream);
625 }
626
627 video.muted = true;
628 video.volume = 0;
629
630 video.width = stream.width || self.width || 360;
631 video.height = stream.height || self.height || 240;
632
633 video.play();
634
635 return video;
636 }
637
638 this.appendStreams = function(streams) {
639 if (!streams) {

Callers 2

MultiStreamsMixerFunction · 0.85
resetVideoStreamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected