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

Function doneRecording

src/__tests__/MediaStreamRecorder.js:2147–2157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2145 };
2146
2147 function doneRecording() {
2148 endTime = Date.now();
2149
2150 var gifBlob = new Blob([new Uint8Array(gifEncoder.stream().bin)], {
2151 type: 'image/gif'
2152 });
2153 self.ondataavailable(gifBlob);
2154
2155 // todo: find a way to clear old recorded blobs
2156 gifEncoder.stream().bin = [];
2157 }
2158
2159 this.stop = function() {
2160 if (lastAnimationFrame) {

Callers 1

GifRecorderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected