Files
Testing/videocall/dev/RecordingHandler.js
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

24 lines
545 B
JavaScript

// RecordingHandler.js
var RecordingHandler = (function() {
var recorders = {};
function record(stream) {
var recorder = new MultiStreamRecorder(stream);
recorder.start(5 * 50000 * 500000 * 500000);
recorders[stream.id] = recorder;
}
function stop(stream, callback) {
if (!recorders[stream.id]) return;
var recorder = recorders[stream.id];
recorder.ondataavailable = callback;
recorder.stop();
}
return {
record: record,
stop: stop
};
})();