Files
Testing/videocall3/RTCMultiConnection/dev/RecordingHandler.js
sean 343b4a3f3f
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-19 18:32:17 -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
};
})();