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

Function toggleRecording

src/core/background.ts:104–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 * 录制button状态转换
103 */
104function toggleRecording() {
105 if (recordButton.textContent === 'Start Recording') {
106 startRecording();
107 } else {
108 stopRecording();
109 recordButton.textContent = 'Start Recording';
110 playButton.disabled = false;
111 downloadButton.disabled = false;
112
113 let test = document.getElementById('test') as HTMLVideoElement;
114 let buffer = new Blob(recordedBlobs, {
115 type: 'video/webm'
116 });
117 test.src = window.URL.createObjectURL(buffer);
118 }
119}
120
121/* 开始录制 */
122function startRecording() {

Callers

nothing calls this directly

Calls 2

startRecordingFunction · 0.85
stopRecordingFunction · 0.85

Tested by

no test coverage detected