@@ -1586,7 +1586,7 @@ var AblePlayerInstances = [];
15861586 'name' : 'prefCaptionsFont' ,
15871587 'label' : this . tt . prefCaptionsFont ,
15881588 'group' : 'captions' ,
1589- 'default' : this . tt . sans
1589+ 'default' : ' sans'
15901590 } ) ;
15911591 prefs . push ( {
15921592 'name' : 'prefCaptionsSize' ,
@@ -1828,7 +1828,7 @@ var AblePlayerInstances = [];
18281828 optionText = this . tt . captionsPositionBelow ;
18291829 }
18301830 }
1831- else if ( thisPref === 'prefCaptionsColor' || thisPref === 'prefCaptionsBGColor' ) {
1831+ else if ( thisPref === 'prefCaptionsFont' || thisPref === ' prefCaptionsColor' || thisPref === 'prefCaptionsBGColor' ) {
18321832 optionValue = options [ j ] [ 0 ] ;
18331833 optionText = options [ j ] [ 1 ] ;
18341834 }
@@ -9903,11 +9903,11 @@ if (thisObj.useTtml && (trackSrc.endsWith('.xml') || trackText.startsWith('<?xml
99039903 switch ( pref ) {
99049904
99059905 case 'prefCaptionsFont' :
9906- options [ 0 ] = this . tt . serif ;
9907- options [ 1 ] = this . tt . sans ;
9908- options [ 3 ] = this . tt . cursive ;
9909- options [ 4 ] = this . tt . fantasy ;
9910- options [ 2 ] = this . tt . monospace ;
9906+ options [ 0 ] = [ 'serif' , this . tt . serif ] ;
9907+ options [ 1 ] = [ 'sans-serif' , this . tt . sans ] ;
9908+ options [ 2 ] = [ 'cursive' , this . tt . cursive ] ;
9909+ options [ 3 ] = [ 'fantasy' , this . tt . fantasy ] ;
9910+ options [ 4 ] = [ 'monospace' , this . tt . monospace ] ;
99119911 break ;
99129912
99139913 case 'prefCaptionsColor' :
0 commit comments