Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

Revert "fix(calls): call video recording view" (#4874)

Will Hutchinsonad5b7accbdd9
diff --git a/apps/web/src/features/block-call/component/CallRecording/CallRecordingVideo.test.tsx b/apps/web/src/features/block-call/component/CallRecording/CallRecordingVideo.test.tsx
index 955d1cd3c4..bb07617d33 100644
--- a/apps/web/src/features/block-call/component/CallRecording/CallRecordingVideo.test.tsx
+++ b/apps/web/src/features/block-call/component/CallRecording/CallRecordingVideo.test.tsx
@@ -93,7 +93,7 @@ afterAll(() => {
});
describe('CallRecordingVideo', () => {
- it('shows an unsupported-format fallback without requiring CORS for playback', async () => {
+ it('shows an unsupported-format fallback while preserving native video attributes', async () => {
mockPosterFetch();
const { container } = render(() => (
@@ -122,7 +122,7 @@ describe('CallRecordingVideo', () => {
expect(fallbackLink.hasAttribute('download')).toBe(true);
expect(video.hasAttribute('controls')).toBe(true);
- expect(video.hasAttribute('crossorigin')).toBe(false);
+ expect(video.getAttribute('crossorigin')).toBe('anonymous');
expect(video.getAttribute('poster')).toBe(posterBlobUrl);
expect(video.getAttribute('src')).toBe(recordingUrl);
diff --git a/apps/web/src/features/block-call/component/CallRecording/CallRecordingVideo.tsx b/apps/web/src/features/block-call/component/CallRecording/CallRecordingVideo.tsx
index c72cd4368e..037d7f2cc2 100644
--- a/apps/web/src/features/block-call/component/CallRecording/CallRecordingVideo.tsx
+++ b/apps/web/src/features/block-call/component/CallRecording/CallRecordingVideo.tsx
@@ -103,6 +103,7 @@ export function CallRecordingVideo(props: {
'opacity-100': hasVisibleVideo(),
}}
controls
+ crossorigin="anonymous"
poster={posterBlobUrl()}
src={props.url}
onError={handlePlaybackError}