Skip to content

Commit

Permalink
Fix captions not appearing on XBox
Browse files Browse the repository at this point in the history
  • Loading branch information
littlespex authored and jfconti committed Apr 26, 2024
1 parent be5665e commit 4a6a68c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/cues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Cues: CuesInterface = {
let indenting: boolean;
let indent: number;
let text: string;
// const Cue = (self.VTTCue || self.TextTrackCue) as any;
const Cue = (self.VTTCue || self.TextTrackCue) as any;

for (let r = 0; r < captionScreen.rows.length; r++) {
row = captionScreen.rows[r];
Expand All @@ -53,7 +53,7 @@ const Cues: CuesInterface = {
endTime += 0.0001;
}

cue = new VTTCue(startTime, endTime, fixLineBreaks(text.trim()));
cue = new Cue(startTime, endTime, fixLineBreaks(text.trim()));

if (indent >= 16) {
indent--;
Expand Down

0 comments on commit 4a6a68c

Please sign in to comment.