Duplicate Playlist Entries with BaseURL tags at different levels of the Manifest
还没有人认领这个 Issue。
- #191 来自 @cpruijsen —— 已关闭,未合并
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
调研方向
Start in src/inheritAttributes.js at the linked inheritAttributes functionality and inspect how representationInfo is built from parent and child BaseURL nodes. Reproduce the manifest example with multiple MPD-level BaseURL elements, then verify that unresolved combinations do not add duplicate child BaseURL entries while preserving distinct URLs.
由索引模型根据 Issue 内容生成。
描述
There are occurrences in the inheritAttributes functionality where this representationInfo array contains undesired duplicates. This generally occurs when there are multiple BaseURL nodes that are direct children of the MPD node. When we attempt to resolve URLs from a combination of the parent BaseURL and a child BaseURL, and the value does not resolve, we end up returning the child BaseURL multiple times. We need to determine a way to remove these duplicates in a safe way.
See: https://github.com/videojs/mpd-parser/pull/17#discussion_r162750527
Example Input (Note that there are multiple BaseURLs as direct children of the MPD tag)
<MPD type="dyanmic">
<BaseURL serviceLocation="alpha">https://cdn1.example.com/</BaseURL>
<BaseURL serviceLocation="beta">https://cdn2.example.com/</BaseURL>
<Period start="PT0S">
...
<AdaptationSet mimeType="text/vtt" lang="en">
<Representation bandwidth="256" id="en">
<BaseURL>https://example.com/en.vtt</BaseURL>
</Representation>
</AdaptationSet>
</Period>
</MPD>
Current Actual RepresentationInfo
representationInfo: [
{
attributes: {
baseUrl: 'https://cdn1.example.com/',
...
},
segmentInfo: {...}
},
{
attributes: {
baseUrl: 'https://cdn2.example.com/',
...
},
segmentInfo: {...}
},
{
attributes: {
baseUrl: 'https://example.com/en.vtt',
...
},
segmentInfo: {...}
},
{
attributes: {
baseUrl: 'https://example.com/en.vtt',
...
},
segmentInfo: {...}
}
]
Expected (Notice there is one less entry than the last)
representationInfo: [
{
attributes: {
baseUrl: 'https://cdn1.example.com/',
...
},
segmentInfo: {...}
},
{
attributes: {
baseUrl: 'https://cdn2.example.com/',
...
},
segmentInfo: {...}
},
{
attributes: {
baseUrl: 'https://example.com/en.vtt',
...
},
segmentInfo: {...}
}
]
- 主要语言
- JavaScript
- 星标
- 89
- 派生
- 60
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
videojs/mpd-parser 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
videojs/mpd-parser#193 ·
-
The version of @xmldom/xmldom currently relied upon by mpd-parser has a critical vulnerability.可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 45/100
videojs/mpd-parser#189 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 30/100
videojs/mpd-parser#185 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
videojs/mpd-parser#183 ·
-
enhancement
难度 3/5 1-2 天 新手友好度 30/100
videojs/mpd-parser#182 · 6 条评论 ·
查看 videojs/mpd-parser 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
nodejs/node#66743 · 1 个 reaction ·
维护者通常 1 天内回复
-
enhancement good first issue help wanted
难度 2/5 1-3 小时 新手友好度 78/100
OWASP/cve-lite-cli#1335 ·
维护者通常 1 天内回复
-
Channels status: needs triage
难度 2/5 1-3 小时 新手友好度 70/100
mastra-ai/mastra#27093 · 1 条评论 ·
维护者通常 1 天内回复
-
category/development priority/P1 scope/ci-cd scope/testing status/ready-for-agent type/bug
难度 1/5 1 小时以内 新手友好度 72/100
QwenLM/qwen-code#14225 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100