OptionalcolorsCustom colors
OptionalcurrentCurrent user ID (used to determine edit permissions on markers)
OptionalcustomCustom viewer renderers for specific resource types. Allows developers to add their own viewers for custom file types.
OptionalenableEnable timeline markers for audio/video files
OptionalenableEnable region creation and loop playback for audio/video files
OptionalerrorError message if loading failed
File being viewed
Presigned URL for file content
OptionallabelsCustom labels
Optionalclose?: stringOptionalerror?: stringOptionalloading?: stringOptionalnoInlinePreview?: stringMessage shown for resource types without an inline viewer
OptionalnoPreview?: stringOptionalopenInDedicatedTab?: stringHint directing users to open in the dedicated tab
Optionalpages?: stringOptionalloadingWhether file is loading
OptionalmarkersInitial timeline markers to load
Close viewer handler
OptionalonCallback to open another file (for linked files like summaries)
OptionalonCalled when a new timeline marker is added
OptionalonCalled when a timeline marker is updated
OptionalonCalled when a timeline marker is deleted
OptionalonCalled when a named region is created or updated
OptionalonCalled when a named region is deleted
OptionalonCallback to resolve a presigned URL for a file by ID. Used to auto-resolve recording video for analysis files.
Whether viewer is open
OptionalparentReference to parent container (for positioning)
OptionalrecordingPresigned URL to the recording video (shown inline in recording-analysis viewer).
When not provided but onResolveRecordingUrl is set, FileViewer resolves it automatically.
OptionalregionsInitial named regions to load
OptionalstylesCustom styles
Props for the FileViewer overlay component.
Example
Example
With custom viewers: