mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 11:24:43 +00:00
feat(comments): add printable comments page with frame thumbnails and markup overlays (#550)
* feat(comments): add printable comments page with frame thumbnails and markup overlays * fix(comments): guarantee frame-accurate ffmpeg seeking for printable comment thumbnails * fix(comments): address printable comments review findings
This commit is contained in:
@@ -485,3 +485,18 @@ export type ExportCommentsRequest = z.infer<typeof exportCommentsRequestSchema>
|
||||
export const exportCommentsQuerySchema = exportCommentsRequestSchema
|
||||
/** @deprecated Use ExportCommentsRequest */
|
||||
export type ExportCommentsQuery = ExportCommentsRequest
|
||||
|
||||
export const commentFrameQuerySchema = z.object({
|
||||
second: z.coerce.number().refine((val) => Number.isFinite(val) && val >= 0, {
|
||||
message: 'second must be a non-negative finite number',
|
||||
}),
|
||||
width: z.coerce.number().int().min(64).max(1280).optional().default(400),
|
||||
})
|
||||
export type CommentFrameQuery = z.infer<typeof commentFrameQuerySchema>
|
||||
|
||||
export const printCommentsResponseSchema = z.object({
|
||||
asset: assetInfoSchema,
|
||||
breadcrumbs: z.array(z.string()),
|
||||
comments: z.array(commentInfoSchema),
|
||||
})
|
||||
export type PrintCommentsResponse = z.infer<typeof printCommentsResponseSchema>
|
||||
|
||||
Reference in New Issue
Block a user