@@ -33,7 +33,7 @@ Object.assign(mejs.MepDefaults, {
3333
3434 audioDescriptionCanPlay : false ,
3535
36- iconSpritePath : 'mejs-a11y-icons.svg'
36+ iconSpritePathA11y : 'mejs-a11y-icons.svg'
3737} ) ;
3838
3939Object . assign ( MediaElementPlayer . prototype , {
@@ -69,12 +69,12 @@ Object.assign(MediaElementPlayer.prototype, {
6969 return node . className . indexOf ( className ) > - 1 ;
7070 } ) ;
7171 } ,
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>' ;
7474 } ,
7575 _createAudioDescription : function _createAudioDescription ( ) {
7676 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' ) ;
7878 var audioDescriptionTitle = mejs . i18n . t ( 'mejs.a11y-audio-description' ) ;
7979 var audioDescriptionButton = document . createElement ( 'div' ) ;
8080 audioDescriptionButton . className = t . options . classPrefix + 'button ' + t . options . classPrefix + 'audio-description-button' ;
@@ -91,7 +91,7 @@ Object.assign(MediaElementPlayer.prototype, {
9191 } ,
9292 _createVideoDescription : function _createVideoDescription ( ) {
9393 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' ) ;
9595 var videoDescriptionTitle = mejs . i18n . t ( 'mejs.a11y-video-description' ) ;
9696 var videoDescriptionButton = document . createElement ( 'div' ) ;
9797 videoDescriptionButton . className = t . options . classPrefix + 'button ' + t . options . classPrefix + 'video-description-button' ;
0 commit comments