Skip to content

Commit

Permalink
Fix DVB font download functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy committed Feb 24, 2024
1 parent 1d370a4 commit 7272572
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ function Settings() {
enableManifestTimescaleMismatchFix: false,
capabilities: {
filterUnsupportedEssentialProperties: true,
supportedEssentialProperties: Constants.THUMBNAILS_SCHEME_ID_URIS,
supportedEssentialProperties: [Constants.FONT_DOWNLOAD_DVB_SCHEME, ...Constants.THUMBNAILS_SCHEME_ID_URIS],
useMediaCapabilitiesApi: false
},
timeShiftBuffer: {
Expand Down
2 changes: 1 addition & 1 deletion src/streaming/text/DVBFonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function DVBFonts(config) {
* @private
*/
function _hasMandatoryDvbFontAttributes(attrs) {
return !!((attrs.value && attrs.value === '1') &&
return !!((attrs.value && parseInt(attrs.value) === 1) &&
(attrs.dvbUrl && attrs.dvbUrl.length > 0) &&
(attrs.dvbFontFamily && attrs.dvbFontFamily.length > 0) &&
(attrs.dvbMimeType && (attrs.dvbMimeType === Constants.OFF_MIMETYPE || attrs.dvbMimeType === Constants.WOFF_MIMETYPE)));
Expand Down

0 comments on commit 7272572

Please sign in to comment.