diff --git a/changelog.md b/changelog.md index 8dc6fa8..ad30ad8 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ # Version History +## *3.0.1 (2024/03/11)* +### QUALITY PLUGIN +* Icon Visibility Fix: The quality icon will now remain visible and functional across all quality adjustments. +* Improved Option Naming: The option `iconPath` has been renamed to `iconPathQuality` to enhance clarity and consistency. + +### A11Y PLUGIN +* Improved Option Naming: The option `iconSpritePath` has been renamed to `iconSpritePathA11y` to enhance clarity and consistency. + ## *3.0.0 (2024/03/06)* ### QUALITY PLUGIN #### New Feature: Inline SVG icons for quality button diff --git a/dist/a11y/a11y.js b/dist/a11y/a11y.js index 9b0908f..db3f41e 100644 --- a/dist/a11y/a11y.js +++ b/dist/a11y/a11y.js @@ -33,7 +33,7 @@ Object.assign(mejs.MepDefaults, { audioDescriptionCanPlay: false, - iconSpritePath: 'mejs-a11y-icons.svg' + iconSpritePathA11y: 'mejs-a11y-icons.svg' }); Object.assign(MediaElementPlayer.prototype, { @@ -69,12 +69,12 @@ Object.assign(MediaElementPlayer.prototype, { return node.className.indexOf(className) > -1; }); }, - _generateIconHtml: function _generateIconHtml(id, classPrefix, iconSpritePath, iconId) { - return ''; + _generateIconHtml: function _generateIconHtml(id, classPrefix, iconSpritePathA11y, iconId) { + return ''; }, _createAudioDescription: function _createAudioDescription() { var t = this; - var iconHtml = t._generateIconHtml(t.id, t.options.classPrefix, t.options.iconSpritePath, 'icon-audio'); + var iconHtml = t._generateIconHtml(t.id, t.options.classPrefix, t.options.iconSpritePathA11y, 'icon-audio'); var audioDescriptionTitle = mejs.i18n.t('mejs.a11y-audio-description'); var audioDescriptionButton = document.createElement('div'); audioDescriptionButton.className = t.options.classPrefix + 'button ' + t.options.classPrefix + 'audio-description-button'; @@ -91,7 +91,7 @@ Object.assign(MediaElementPlayer.prototype, { }, _createVideoDescription: function _createVideoDescription() { var t = this; - var iconHtml = t._generateIconHtml(t.id, t.options.classPrefix, t.options.iconSpritePath, 'icon-video'); + var iconHtml = t._generateIconHtml(t.id, t.options.classPrefix, t.options.iconSpritePathA11y, 'icon-video'); var videoDescriptionTitle = mejs.i18n.t('mejs.a11y-video-description'); var videoDescriptionButton = document.createElement('div'); videoDescriptionButton.className = t.options.classPrefix + 'button ' + t.options.classPrefix + 'video-description-button'; diff --git a/dist/a11y/a11y.min.js b/dist/a11y/a11y.min.js index 8693f7c..1f5cddb 100644 --- a/dist/a11y/a11y.min.js +++ b/dist/a11y/a11y.min.js @@ -9,4 +9,4 @@ * License: MIT * */ -!function r(s,a,d){function u(i,e){if(!a[i]){if(!s[i]){var o="function"==typeof require&&require;if(!e&&o)return o(i,!0);if(c)return c(i,!0);var t=new Error("Cannot find module '"+i+"'");throw t.code="MODULE_NOT_FOUND",t}var n=a[i]={exports:{}};s[i][0].call(n.exports,function(e){return u(s[i][1][e]||e)},n,n.exports,r,s,a,d)}return a[i].exports}for(var c="function"==typeof require&&require,e=0;e