fix(lab): restore canonical RAV004 replay

This commit is contained in:
DCCONSTRUCTIONS
2026-08-29 21:08:49 +03:00
parent c30d77572e
commit 525ab74168
8 changed files with 594 additions and 14 deletions
@@ -81,7 +81,9 @@ export function LaboratoryRecordedClipPlayer({
sourceCount,
cameraRef,
cameraOverlay,
cameraControls,
alternativeScene,
spatialControls,
onSequenceChange,
onPlayingChange,
onPlaybackRateChange,
@@ -97,7 +99,9 @@ export function LaboratoryRecordedClipPlayer({
sourceCount: number;
cameraRef?: RefObject<HTMLDivElement | null>;
cameraOverlay?: ReactNode;
cameraControls?: ReactNode;
alternativeScene?: ReactNode;
spatialControls?: ReactNode;
onSequenceChange: (sequence: number) => void;
onPlayingChange: (playing: boolean) => void;
onPlaybackRateChange: (rate: number) => void;
@@ -173,6 +177,14 @@ export function LaboratoryRecordedClipPlayer({
aria-hidden={cameraPresentation === "primary"}
>
{alternativeScene}
{spatialControls ? (
<div
className="laboratory-recorded-clip-player__pane-controls"
data-pane="spatial"
>
{spatialControls}
</div>
) : null}
</div>
);
const cameraPane = (
@@ -195,6 +207,14 @@ export function LaboratoryRecordedClipPlayer({
/>
) : null}
{cameraPresentation !== "hidden" ? cameraOverlay : null}
{cameraPresentation !== "hidden" && cameraControls ? (
<div
className="laboratory-recorded-clip-player__pane-controls"
data-pane="camera"
>
{cameraControls}
</div>
) : null}
</div>
);
return (