Skip to content

Commit

Permalink
fix: invalid set ids in dash manifest (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wykerd authored Aug 24, 2023
1 parent 859c458 commit 1c3ea2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/DashManifest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function DashManifest({
{
audio_sets.map((set, index) => (
<adaptation-set
id={`audio_${index}`}
id={index}
mimeType={set.mime_type}
startWithSAP="1"
subsegmentAlignment="true"
Expand All @@ -107,7 +107,7 @@ function DashManifest({
}
{
set.track_name &&
<label id={`audio_${index}`}>
<label id={index}>
{set.track_name}
</label>
}
Expand Down Expand Up @@ -143,7 +143,7 @@ function DashManifest({
{
video_sets.map((set, index) => (
<adaptation-set
id={`video_${index}`}
id={index + audio_sets.length}
mimeType={set.mime_type}
startWithSAP="1"
subsegmentAlignment="true"
Expand Down Expand Up @@ -192,7 +192,7 @@ function DashManifest({
{
image_sets.map(async (set, index) => {
return <adaptation-set
id={`thumbs_${index}`}
id={index + audio_sets.length + video_sets.length}
mimeType={await set.getMimeType()}
contentType="image"
>
Expand Down

0 comments on commit 1c3ea2a

Please sign in to comment.