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

An MPD with incorrect root element attributes leads to an uncaught exception.

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

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
audio-video-rtc

Hướng nghiên cứu

Start by reproducing the issue with the MPD example in the report and trace the parser path that handles the root element and SegmentList attributes. Confirm the malformed input produces a defined parsing error such as MISSING_SEGMENT_INFORMATION instead of an uncaught TypeError. The payload does not name a source file or test, so those must be located before implementation.

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

Mô tả

bug

An MPD such as:

<?xml version="1.0"?>
  <MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:full:2011" minBufferTime="PT1.5S">
    <Period duration="PT30S">
      <BaseURL>main/</BaseURL>
      <AdaptationSet mimeType="video/mp2t">
      <Representation id="720p" bandwidth="3200000" width="1280" height="720">
        <SegmentList timescale="90000" duration="5400000"></SegmentList>
      </Representation>
    </AdaptationSet>
  </Period>
</MPD>

Results in: TypeError: Cannot set property 'duration' of undefined rather than something defined like MISSING_SEGMENT_INFORMATION

Still working out the specifics.

Ngôn ngữ chính
JavaScript
Star
88
Fork
60
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 videojs/mpd-parser

Tất cả issue của videojs/mpd-parser

Issue tương tự

Thêm issue về JavaScript

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.