mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-02-04 09:56:47 +00:00
fix: start raw tracks recording (#729)
* Start raw tracks recording * Bring back recording properties
This commit is contained in:
@@ -60,6 +60,15 @@ export default function DailyRoom({ meeting }: DailyRoomProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
frame.on("left-meeting", handleLeave);
|
frame.on("left-meeting", handleLeave);
|
||||||
|
|
||||||
|
frame.on("joined-meeting", async () => {
|
||||||
|
try {
|
||||||
|
await frame.startRecording({ type: "raw-tracks" });
|
||||||
|
} catch (error) {
|
||||||
|
console.error("Failed to start recording:", error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
await frame.join({ url: roomUrl });
|
await frame.join({ url: roomUrl });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error creating Daily frame:", error);
|
console.error("Error creating Daily frame:", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user