@@ -33,7 +33,7 @@ Object.assign(mejs.MepDefaults, {
33
33
34
34
audioDescriptionCanPlay : false ,
35
35
36
- iconSpritePath : 'mejs-a11y-icons.svg'
36
+ iconSpritePathA11y : 'mejs-a11y-icons.svg'
37
37
} ) ;
38
38
39
39
Object . assign ( MediaElementPlayer . prototype , {
@@ -69,12 +69,12 @@ Object.assign(MediaElementPlayer.prototype, {
69
69
return node . className . indexOf ( className ) > - 1 ;
70
70
} ) ;
71
71
} ,
72
- _generateIconHtml : function _generateIconHtml ( id , classPrefix , iconSpritePath , iconId ) {
73
- return '<svg xmlns="http://www.w3.org/2000/svg" id="' + id + '" class="' + classPrefix + iconId + '" aria-hidden="true" focusable="false">\n <use xlink:href="' + iconSpritePath + '#' + iconId + '"></use></svg>' ;
72
+ _generateIconHtml : function _generateIconHtml ( id , classPrefix , iconSpritePathA11y , iconId ) {
73
+ return '<svg xmlns="http://www.w3.org/2000/svg" id="' + id + '" class="' + classPrefix + iconId + '" aria-hidden="true" focusable="false">\n <use xlink:href="' + iconSpritePathA11y + '#' + iconId + '"></use></svg>' ;
74
74
} ,
75
75
_createAudioDescription : function _createAudioDescription ( ) {
76
76
var t = this ;
77
- var iconHtml = t . _generateIconHtml ( t . id , t . options . classPrefix , t . options . iconSpritePath , 'icon-audio' ) ;
77
+ var iconHtml = t . _generateIconHtml ( t . id , t . options . classPrefix , t . options . iconSpritePathA11y , 'icon-audio' ) ;
78
78
var audioDescriptionTitle = mejs . i18n . t ( 'mejs.a11y-audio-description' ) ;
79
79
var audioDescriptionButton = document . createElement ( 'div' ) ;
80
80
audioDescriptionButton . className = t . options . classPrefix + 'button ' + t . options . classPrefix + 'audio-description-button' ;
@@ -91,7 +91,7 @@ Object.assign(MediaElementPlayer.prototype, {
91
91
} ,
92
92
_createVideoDescription : function _createVideoDescription ( ) {
93
93
var t = this ;
94
- var iconHtml = t . _generateIconHtml ( t . id , t . options . classPrefix , t . options . iconSpritePath , 'icon-video' ) ;
94
+ var iconHtml = t . _generateIconHtml ( t . id , t . options . classPrefix , t . options . iconSpritePathA11y , 'icon-video' ) ;
95
95
var videoDescriptionTitle = mejs . i18n . t ( 'mejs.a11y-video-description' ) ;
96
96
var videoDescriptionButton = document . createElement ( 'div' ) ;
97
97
videoDescriptionButton . className = t . options . classPrefix + 'button ' + t . options . classPrefix + 'video-description-button' ;
0 commit comments