Skip to content

Commit

Permalink
Update src/segment-loader.js
Browse files Browse the repository at this point in the history
Co-authored-by: Garrett Singer <[email protected]>
  • Loading branch information
brandonocasey and gesinger authored May 17, 2021
1 parent a61d7f2 commit f7aab4d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/segment-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2367,8 +2367,11 @@ export default class SegmentLoader extends videojs.EventTarget {

this.logger_(`Requesting ${segmentInfoString(segmentInfo)}`);

// if init segment is being requested
// we will have to re-append the init segment.
// If there's an init segment associated with this segment, but it is not cached (identified by a lack of bytes),
// then this init segment has never been seen before and should be appended.
//
// At this point the content type (audio/video or both) is not yet known, but it should be safe to set
// both to true and leave the decision of whether to append the init segment to append time.
if (simpleSegment.map && !simpleSegment.map.bytes) {
this.logger_('going to request init segment.');
this.appendInitSegment_ = {
Expand Down

0 comments on commit f7aab4d

Please sign in to comment.