Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/video-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ class VideoPlayer {

this.videojs.ready(() => {
this._onReady();
this._applyVolumeBarAriaLiveFix();

if (ready) {
ready(this);
Expand Down Expand Up @@ -581,6 +582,17 @@ class VideoPlayer {
}
}

/**
* Temporary fix: remove aria-live from VolumeBar to avoid NVDA repeated announcements.
* TODO: Remove when Video.js includes the upstream fix (nvaccess/nvda#7996).
*/
_applyVolumeBarAriaLiveFix() {
const volumeBar = this.videojs.$('.vjs-volume-bar');
if (volumeBar) {
volumeBar.removeAttribute('aria-live');
}
}

_onSourceChange(e, { source, sourceOptions }) {
this._sendInternalAnalytics({ ...(sourceOptions && { sourceOptions }) });
this.isLiveStream = source?.resourceConfig()?.type === 'live';
Expand Down
Loading