diff --git a/src/vtt-segment-loader.js b/src/vtt-segment-loader.js index 5097999bd..d1db6c440 100644 --- a/src/vtt-segment-loader.js +++ b/src/vtt-segment-loader.js @@ -54,7 +54,7 @@ export default class VTTSegmentLoader extends SegmentLoader { * TimeRange object representing the current buffered ranges */ buffered_() { - if (!this.subtitlesTrack_ || !this.subtitlesTrack_.cues.length) { + if (!this.subtitlesTrack_ || !this.subtitlesTrack_.cues || !this.subtitlesTrack_.cues.length) { return videojs.createTimeRanges(); }