mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-18 20:05:16 +00:00
Add a notice when recording
This commit is contained in:
@ -923,6 +923,22 @@ class CallWindow extends CustomEvents {
|
||||
this.recorder = new MultiStreamRecorder(streams);
|
||||
this.recorder.ondataavailable = onDataAvailable
|
||||
this.recorder.start(30*60*1000); // Ask for save every 30min
|
||||
|
||||
|
||||
// Add notice
|
||||
this.recordLabel = createElem2({
|
||||
appendTo: this.windowHead,
|
||||
type: "span",
|
||||
class: "record-label",
|
||||
innerHTML: "Recording"
|
||||
});
|
||||
|
||||
createElem2({
|
||||
appendTo: this.recordLabel,
|
||||
type: "a",
|
||||
innerHTML: "STOP",
|
||||
onclick: () => this.startRecording()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -930,6 +946,9 @@ class CallWindow extends CustomEvents {
|
||||
else {
|
||||
this.recorder.stop(onDataAvailable)
|
||||
delete this.recorder
|
||||
|
||||
// Remove notice
|
||||
this.recordLabel.remove()
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user