Files
shumai/docs/using-shumai/comments.mdx
T

56 lines
2.4 KiB
Plaintext

---
title: Comments & Annotations
description: Collaborate on media assets using frame-level drawings and timestamped comments.
---
Shumai provides a feedback workflow designed for video, audio, and image review. Instead of generic text comments, you can drop timestamped feedback and sketch directly onto video frames or images.
---
## Time-Based Comments
When reviewing video or audio assets, comments can be anchored to specific moments in time:
1. Play or scrub the video to the desired timestamp.
2. Type your feedback in the comment input box.
3. Click **Submit**. The comment is saved with the exact timestamp (`second` field in the database) and shown as a marker on the player timeline.
4. Clicking a comment card in the comments sidebar automatically jumps the media player to that exact timestamp.
![Timestamp Comments Placeholder](https://placehold.co/800x400/2C2E3E/D95A66?text=Video+Player+with+Comment+Timeline)
_Placeholder: Screenshot of the video review interface showing comments linked to timestamp markers on the timeline._
---
## Draw Annotations (Canvas)
To give precise visual feedback, you can draw directly onto image or video frames:
1. Pause the video on the frame you wish to comment on.
2. Select a drawing tool (brush, rectangle, circle, arrow) from the annotation toolbar overlay.
3. Draw directly on the video player/canvas.
4. Your drawing coordinates are captured and saved as a JSON payload (`annotation` field in `AssetComment`) associated with your comment.
5. When other users click on your comment, the drawing is overlaid on the video player canvas at the corresponding frame.
![Draw Annotations Placeholder](https://placehold.co/800x400/2C2E3E/D95A66?text=Frame-Level+Drawing+Overlay)
_Placeholder: Screenshot showing the drawing canvas overlay over a video frame with visual arrows and circles._
---
## Comment Threads (Replies)
You can reply to any comment to create threaded discussions:
- Click **Reply** on any comment card.
- Type your message. Replies are nested under the parent comment using the `replyToId` field.
- Threaded comments are sorted chronologically.
---
## Comment Attachments
Need to attach a reference image, PDF, or document to your feedback?
- Click the **Paperclip** icon inside the comment input.
- Select the file to upload.
- Attachments are uploaded to the storage backend and linked to the comment via the `AssetCommentAttachment` relation.