Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: regression with AD audio track menu items #7559

Merged
merged 1 commit into from
Dec 8, 2021

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Dec 7, 2021

In #7337, a lot of code was updated to no longer user innerHTML, but we
accidentally caused an issue with Audio Description (AD) tracks where
the track title was included twice. Once before and once after the AD
icon.

This is because we were calling super.createEl() but MenuItem created
a specific element and didn't just pass things the arguments along.
Instead, we should use Dom.createEl() directly.

Fixes #7556

In #7337, a lot of code was updated to no longer user innerHTML, but we
accidentally caused an issue with Audio Description (AD) tracks where
the track title was included twice. Once before and once after the AD
icon.

This is because we were calling `super.createEl()` but MenuItem created
a specific element and didn't just pass things the arguments along.
Instead, we should use `Dom.createEl()` directly.

Fixes #7556
@codecov
Copy link

codecov bot commented Dec 7, 2021

Codecov Report

Merging #7559 (4c53a7d) into main (3c21345) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #7559   +/-   ##
=======================================
  Coverage   80.24%   80.24%           
=======================================
  Files         116      116           
  Lines        7324     7324           
  Branches     1770     1770           
=======================================
  Hits         5877     5877           
  Misses       1447     1447           
Impacted Files Coverage Δ
...-bar/audio-track-controls/audio-track-menu-item.js 3.03% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c21345...4c53a7d. Read the comment docs.

@gkatsev gkatsev merged commit 1d4bad8 into main Dec 8, 2021
@gkatsev gkatsev deleted the ad-track-menu-regression branch December 8, 2021 20:30
edirub pushed a commit to edirub/video.js that referenced this pull request Jun 8, 2023
In videojs#7337, a lot of code was updated to no longer user innerHTML, but we
accidentally caused an issue with Audio Description (AD) tracks where
the track title was included twice. Once before and once after the AD
icon.

This is because we were calling `super.createEl()` but MenuItem created
a specific element and didn't just pass things the arguments along.
Instead, we should use `Dom.createEl()` directly.

Fixes videojs#7556
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Audio Described displayed next the AD icon
2 participants