Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(calls): show placeholder image over recording (#3832)
Will Hutchinson835921f2b633
diff --git a/js/app/packages/block-call/component/CallRecording/CallRecordingVideo.tsx b/js/app/packages/block-call/component/CallRecording/CallRecordingVideo.tsxindex 64325f4205..5d7821ccd4 100644--- a/js/app/packages/block-call/component/CallRecording/CallRecordingVideo.tsx+++ b/js/app/packages/block-call/component/CallRecording/CallRecordingVideo.tsx@@ -1,4 +1,4 @@-import { createSignal, onCleanup } from 'solid-js';+import { createEffect, createSignal, onCleanup } from 'solid-js';export function CallRecordingVideo(props: {url: string;@@ -12,6 +12,14 @@ export function CallRecordingVideo(props: {const [isLoaded, setIsLoaded] = createSignal(false);let rafId: number | null = null;+ createEffect<string | undefined>((previousUrl) => {+ const url = props.url;+ if (url !== previousUrl) {+ setIsLoaded(false);+ }+ return url;+ });+const stopTicking = () => {if (rafId !== null) {cancelAnimationFrame(rafId);@@ -38,7 +46,10 @@ export function CallRecordingVideo(props: {<videoref={props.setVideoRef}class="max-w-full max-h-full rounded transition-opacity duration-200"- classList={{ 'opacity-0': !isLoaded(), 'opacity-100': isLoaded() }}+ classList={{+ 'opacity-0': !isLoaded() && !props.posterUrl,+ 'opacity-100': isLoaded() || !!props.posterUrl,+ }}controlscrossorigin="anonymous"poster={props.posterUrl}