Skip to content

Commit

Permalink
Support SegmentList and SegmentBase boundaryEnd
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Mar 4, 2025
1 parent eea7065 commit 633b191
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/dash/segment_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ shaka.dash.SegmentBase = class {
encrypted);
ref.codecs = context.representation.codecs;
ref.mimeType = context.representation.mimeType;
if (context.periodInfo) {
ref.boundaryEnd = context.periodInfo.start + context.periodInfo.duration;
}
return ref;
}

Expand Down
4 changes: 3 additions & 1 deletion lib/dash/segment_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,9 @@ shaka.dash.SegmentTemplate = class {
encrypted);
ref.codecs = context.representation.codecs;
ref.mimeType = context.representation.mimeType;
ref.boundaryEnd = context.periodInfo.start + context.periodInfo.duration;
if (context.periodInfo) {
ref.boundaryEnd = context.periodInfo.start + context.periodInfo.duration;
}
return ref;
}
};
Expand Down

0 comments on commit 633b191

Please sign in to comment.