Skip to content

Commit

Permalink
Add parser.flush() call to VTT Loader for improved data handling
Browse files Browse the repository at this point in the history
  • Loading branch information
SangwonOh committed Jan 20, 2025
1 parent 0e48690 commit 13e6b6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/api/caption/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const Loader = function () {
};
// Parse calls onflush internally
parser.parse(body);
parser.flush();
} else if (body.indexOf('SAMI') >= 0) {
OvenPlayerConsole.log("SAMI LOADED");
let parsedData = SmiParser(body, {fixedLang: language});
Expand Down

0 comments on commit 13e6b6e

Please sign in to comment.