Duplicate Playlist Entries with BaseURL tags at different levels of the Manifest
まだ誰も着手していません。
- #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 ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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.対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 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 ·
-
Multi audio trackオープンenhancement
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
videojs/mpd-parser#182 · コメント 6 件 ·
videojs/mpd-parser の issue をすべて見る
似ている issue
-
Awaiting Maintainer Approval Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
processing/p5.js-web-editor#4364 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
woocommerce/woocommerce-google-analytics-integration#699 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1時間未満 初心者へのやさしさ 74/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
JsCommunity/app-conf#22 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信