Skip to content

Commit

Permalink
Fix shaka subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Sep 12, 2023
1 parent 35dda25 commit 889900b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117450,7 +117450,7 @@ var $$IMU_EXPORT$$;
let title = subtitle.title || null;
let mime = subtitle.mime || undefined;
let forced = false;
player.addTextTrack(subtitle.url, language, kind, mime, undefined, title, forced);
player.addTextTrackAsync(subtitle.url, language, kind, mime, undefined, title, forced);
}
}

Expand Down
2 changes: 1 addition & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -104548,7 +104548,7 @@ var $$IMU_EXPORT$$;
var title = subtitle.title || null;
var mime = subtitle.mime || undefined;
var forced = false;
player.addTextTrack(subtitle.url, language, kind, mime, undefined, title, forced);
player.addTextTrackAsync(subtitle.url, language, kind, mime, undefined, title, forced);
}
}
var text_tracks = player.getTextTracks();
Expand Down

0 comments on commit 889900b

Please sign in to comment.