Skip to content

Commit a162738

Browse files
committed
Make imscJS style options generic
1 parent bb0646d commit a162738

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/core/Settings.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -513,12 +513,8 @@ import Events from './events/Events';
513513
* When true, only those captions where itts:forcedDisplay="true" will be displayed.
514514
* @property {boolean} [imsc.enableRollUp=true]
515515
* Enable/disable rollUp style display of IMSC captions.
516-
* @property {number} [imsc.options.sizeAdjust=1]
517-
* IMSC styling options - adjust text size, scales the text size and line padding
518-
* @property {number} [imsc.options.lineHeightAdjust=1]
519-
* IMSC styling options - scales the line height
520-
* @property {number} [imsc.options.backgroundOpacityScale=1]
521-
* IMSC styling options - scales the backgroundColor opacity
516+
* @property {number} [imsc.options]
517+
* IMSC styling options - including; sizeAdjust, lineHeightAdjust, backgroundOpacityScale and fontFamily. See the renderHtml function of imscJS for full details
522518
* @property {object} [webvtt.customRenderingEnabled=false]
523519
* Enables the custom rendering for WebVTT captions. For details refer to the "Subtitles and Captions" sample section of dash.js.
524520
* Custom WebVTT rendering requires the external library vtt.js that can be found in the contrib folder.
@@ -1015,11 +1011,7 @@ function Settings() {
10151011
imsc: {
10161012
displayForcedOnlyMode: false,
10171013
enableRollUp: true,
1018-
options: {
1019-
sizeAdjust: 1,
1020-
lineHeightAdjust: 1,
1021-
backgroundOpacityScale: 1
1022-
},
1014+
options: null,
10231015
},
10241016
webvtt: {
10251017
customRenderingEnabled: false

0 commit comments

Comments
 (0)