vidply 1.1.5 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,7 +8,7 @@ A modern, feature-rich media player authored in strict TypeScript and shipped as
8
8
  ![TypeScript](https://img.shields.io/badge/TypeScript-strict-blue.svg)
9
9
  ![ESM](https://img.shields.io/badge/ESM-Module-yellow.svg)
10
10
  ![WCAG](https://img.shields.io/badge/WCAG-2.2%20AA-green.svg)
11
- ![Version](https://img.shields.io/badge/version-1.1.4-brightgreen.svg)
11
+ ![Version](https://img.shields.io/badge/version-1.1.7-brightgreen.svg)
12
12
 
13
13
  ## Live Demos
14
14
 
@@ -2831,7 +2831,8 @@ var ControlBar = class {
2831
2831
  iconName = "volumeHigh";
2832
2832
  }
2833
2833
  icon.innerHTML = createIconElement(iconName).innerHTML;
2834
- const newMuteAriaLabel = this.player.state.muted ? i18n.t("player.unmute") : i18n.t("player.mute");
2834
+ const volumePercent = this.player.state.muted ? 0 : Math.round(percent);
2835
+ const newMuteAriaLabel = this.isTouchDevice() ? this.player.state.muted ? i18n.t("player.unmute") : i18n.t("player.mute") : `${i18n.t("player.volume")} ${volumePercent}%`;
2835
2836
  this.controls.mute.setAttribute("aria-label", newMuteAriaLabel);
2836
2837
  DOMUtils.attachTooltip(this.controls.mute, newMuteAriaLabel, this.player.options.classPrefix);
2837
2838
  }