From 069bb6d0ae4ca38739646249ce9a2a5a1f2c27ab Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Sat, 14 May 2022 02:19:13 -0400 Subject: [PATCH] Merge pull request #3635 from dmitrylyzo/fix-ssa-font Fix SSA/ASS missing font (cherry picked from commit 38ef0e2bf2cc47d326314d56b0e74f210fec82dc) Signed-off-by: Joshua Boniface --- src/plugins/htmlVideoPlayer/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index c0e05d5876..e8c174bbd7 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -1049,7 +1049,7 @@ function tryRemoveElement(elem) { * @private */ renderSsaAss(videoElement, track, item) { - const supportedFonts = ['application/x-truetype-font', 'font/otf', 'font/ttf', 'font/woff', 'font/woff2']; + const supportedFonts = ['application/vnd.ms-opentype', 'application/x-truetype-font', 'font/otf', 'font/ttf', 'font/woff', 'font/woff2']; const avaliableFonts = []; const attachments = this._currentPlayOptions.mediaSource.MediaAttachments || []; const apiClient = ServerConnections.getApiClient(item);