@@ -56,7 +56,7 @@ Object.assign(mejs.MepDefaults, {
5656 * The path where the icon sprite is located
5757 * @type {String }
5858 */
59- iconSpritePath : 'mejs-a11y-icons.svg' ,
59+ iconSpritePathA11y : 'mejs-a11y-icons.svg' ,
6060} ) ;
6161
6262
@@ -97,13 +97,13 @@ Object.assign(MediaElementPlayer.prototype, {
9797 * @private
9898 * @param {String } id - ID of the MediaElement player
9999 * @param {String } classPrefix - Prefix for the class attribute
100- * @param {String } iconSpritePath - Path to the SVG sprite containing icons
100+ * @param {String } iconSpritePathA11y - Path to the SVG sprite containing icons
101101 * @param {String } iconId - Specific ID of the icon within the SVG sprite
102102 * @returns {String } The complete HTML string for the SVG element
103103 */
104- _generateIconHtml ( id , classPrefix , iconSpritePath , iconId ) {
104+ _generateIconHtml ( id , classPrefix , iconSpritePathA11y , iconId ) {
105105 return `<svg xmlns="http://www.w3.org/2000/svg" id="${ id } " class="${ classPrefix } ${ iconId } " aria-hidden="true" focusable="false">
106- <use xlink:href="${ iconSpritePath } #${ iconId } "></use></svg>` ;
106+ <use xlink:href="${ iconSpritePathA11y } #${ iconId } "></use></svg>` ;
107107 } ,
108108
109109 /**
@@ -113,7 +113,7 @@ Object.assign(MediaElementPlayer.prototype, {
113113 */
114114 _createAudioDescription ( ) {
115115 const t = this ;
116- const iconHtml = t . _generateIconHtml ( t . id , t . options . classPrefix , t . options . iconSpritePath , 'icon-audio' ) ;
116+ const iconHtml = t . _generateIconHtml ( t . id , t . options . classPrefix , t . options . iconSpritePathA11y , 'icon-audio' ) ;
117117 const audioDescriptionTitle = mejs . i18n . t ( 'mejs.a11y-audio-description' ) ;
118118 const audioDescriptionButton = document . createElement ( 'div' ) ;
119119 audioDescriptionButton . className = `${ t . options . classPrefix } button ${ t . options . classPrefix } audio-description-button` ;
@@ -136,7 +136,7 @@ Object.assign(MediaElementPlayer.prototype, {
136136 */
137137 _createVideoDescription ( ) {
138138 const t = this ;
139- const iconHtml = t . _generateIconHtml ( t . id , t . options . classPrefix , t . options . iconSpritePath , 'icon-video' ) ;
139+ const iconHtml = t . _generateIconHtml ( t . id , t . options . classPrefix , t . options . iconSpritePathA11y , 'icon-video' ) ;
140140 const videoDescriptionTitle = mejs . i18n . t ( 'mejs.a11y-video-description' ) ;
141141 const videoDescriptionButton = document . createElement ( 'div' ) ;
142142 videoDescriptionButton . className = `${ t . options . classPrefix } button ${ t . options . classPrefix } video-description-button` ;
0 commit comments