Review player: limit a redaction box to a time window

Đang mở
#377 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@lucky0559 đang làm issue này rồi.

Từ ngày 19/11/2026.

  • #381 của @lucky0559 — đã đóng, không merge
  • #382 của @lucky0559 — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start with assets/ui/player.html and assets/ui/player.js to trace the box form, box list, stage drawing, and export; read src/tools/redactRegion.ts for the existing start and end behavior. Run npm test and inspect the generated regions assertion. Done means boxes can be time-limited by pointer and keyboard, display only while active, and export their window; an open linked pull request indicates work is already underway.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

effort: small enhancement good first issue priority: medium

Summary

Redaction boxes drawn in the review player cover the whole kept range. redact_region and pipeline redact already support a start..end window per region, but the player cannot set one. A notification that sits on screen for 3 seconds gets blurred for the whole video.

Where

  • assets/ui/player.html:137-146 (box form: X, Y, W, H only)
  • assets/ui/player.js:367 (regions: S.boxes.map((b) => ({ ...b })), with no time fields)
  • src/tools/redactRegion.ts:15 ("each optionally limited to start..end seconds")

Suggested fix

  • A new box defaults to "whole video". Add a From playhead / To playhead pair (or a small range on the timeline under the box) to limit it.
  • Show each box's window in #boxList (01:10.0–01:13.5) and only draw a box on the stage while the playhead is inside its window.
  • Export includes start/end when set.

Acceptance criteria

  • Boxes can be limited to a time window, by pointer and by keyboard
  • Stage shows only the boxes active at the current frame
  • Export passes the window. A test checks the generated regions

Getting started

  • Relevant files: assets/ui/player.js, assets/ui/player.html
  • Tests: npm test

Filed by repo-audit/feature-ideas at 1ac339f. Severity: medium. Effort: S. audit-key: enhancement|assets/ui/player.js|boxTimeRange

Ngôn ngữ chính
TypeScript
Star
1
Fork
4
Merge trung bình
8 giờ 17 phút
Pull request đã merge (30 ngày)
46

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TMHSDigital/screencast-mcp

Tất cả issue của TMHSDigital/screencast-mcp

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.