Skip to content

Commit

Permalink
fix: support manifests with Representation inside SegmentTemplate
Browse files Browse the repository at this point in the history
instead of media

fixes #50
  • Loading branch information
friday committed Feb 7, 2024
1 parent f8131b5 commit 3c98270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manifests/utils/dashManifestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function (): DASHManifestTools {

DASH_JSON.MPD.Period.map((period) => {
period.AdaptationSet.map((adaptationSet) => {
if (adaptationSet.SegmentTemplate) {
if (adaptationSet.SegmentTemplate[0].$.media) {
// There should only be one segment template with this format
const segmentTemplate = adaptationSet.SegmentTemplate[0];

Expand Down

0 comments on commit 3c98270

Please sign in to comment.