diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js
index eebc619466..4ae1896103 100644
--- a/src/plugins/htmlVideoPlayer/plugin.js
+++ b/src/plugins/htmlVideoPlayer/plugin.js
@@ -1065,7 +1065,21 @@ function tryRemoveElement(elem) {
renderAhead: 90
};
import('libass-wasm').then(({default: SubtitlesOctopus}) => {
- this.#currentSubtitlesOctopus = new SubtitlesOctopus(options);
+ apiClient.getNamedConfiguration('encoding').then(config => {
+ if (config.EnableFallbackFont) {
+ apiClient.getJSON(fallbackFontList).then((fontFiles = []) => {
+ fontFiles.map(font => {
+ const fontUrl = apiClient.getUrl(`/FallbackFont/Fonts/${font.Name}`, {
+ api_key: apiClient.accessToken()
+ });
+ return avaliableFonts.push(fontUrl);
+ });
+ this.#currentSubtitlesOctopus = new SubtitlesOctopus(options);
+ });
+ } else {
+ this.#currentSubtitlesOctopus = new SubtitlesOctopus(options);
+ }
+ });
});
}