Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Clarify that all VideoFrameMetadata members are optional

Đang mở
#879 1 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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
50/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
html
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với định nghĩa dictionary VideoFrameMetadata và VideoFrame Metadata Registry trong đặc tả WebCodecs được liên kết, sau đó kiểm tra tính nhất quán với thành viên metadata của VideoFrameInit. Hoàn tất khi đặc tả nêu rõ rằng tất cả các thành viên của VideoFrameMetadata đều là tùy chọn mà không thay đổi hành vi dự kiến của constructor.

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

Mô tả

The spec says:

dictionary VideoFrameMetadata {
  // Possible members are recorded in the VideoFrame Metadata Registry.
};

But the [webcodecs-video-frame-metadata-registry] does not say whether members are optional or required.

Since dictionary members are optional by default, readers will hopefully infer (correctly) that they're optional, since neither spec mentions required.

Readers might also infer this from VideoFrameInit where metadata is not required, if I'm not mistaken.

Still, it might be good to call this out, since a single required member would mean the VideoFrame constructor would suddenly require this input and no longer be backwards compatible.

Ngôn ngữ chính
HTML
Star
1.3k
Fork
192
Merge trung bình
21 giờ 7 phút
Pull request đã merge (30 ngày)
8

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 w3c/webcodecs

Tất cả issue của w3c/webcodecs

Issue tương tự

Thêm issue về Documentation

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.