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 error when clicking on the current quality in the DASH quality selector #4130

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

absidue
Copy link
Member

@absidue absidue commented Oct 10, 2023

Fix error when clicking on the current quality in the DASH quality selector

Pull Request Type

  • Bugfix

Related issue

closes #3543

Description

Fixes the error that happens if you click on the DASH quality selector but don't click on one of the available qualities. The proper fix would be to use a video.js menu instead of creating one with our own HTML, but this fix works for now.

See issue for the original error and a video of it happening.

Testing

  1. Open a video
  2. Select the DASH formats
  3. Click the current quality in the quality selector, the button that is always visible, that you have to hover over to open the drop up.
  4. Check that it doesn't produce an error like before.

Also test that changing qualities still works.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 0.19.1

Additional context

The proper fix would be to use a video.js menu element instead of creating our own one with raw HTML but that doesn't seem worth changing now.

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 10, 2023
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 10, 2023 18:46
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FreeTubeBot FreeTubeBot merged commit 0ebcd24 into FreeTubeApp:development Oct 11, 2023
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 11, 2023
@absidue absidue deleted the fix-dash-quality-error branch October 11, 2023 11:20
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Oct 17, 2023
* development:
  Bump webpack from 5.88.2 to 5.89.0 (FreeTubeApp#4168)
  Fix playlists not showing up on artist topic channels with the local API (FreeTubeApp#4129)
  Bump undici from 5.19.1 to 5.26.3 (FreeTubeApp#4173)
  Bump marked from 9.1.0 to 9.1.2 (FreeTubeApp#4171)
  Bump sass from 1.69.0 to 1.69.3 (FreeTubeApp#4169)
  Bump the eslint group with 2 updates (FreeTubeApp#4166)
  Bump the babel group with 2 updates (FreeTubeApp#4165)
  Truncate title of playlist in queue window (FreeTubeApp#4134)
  Wrap channel tabs as soon as there isn't enough screen space (FreeTubeApp#4139)
  Keep download folder path when changing to 'ask for download path' and back (FreeTubeApp#4101)
  Add external player support for Baka, Celluloid & Haruna (FreeTubeApp#4067)
  Fix error when clicking on the current quality in the DASH quality selector (FreeTubeApp#4130)
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.

[Bug]: Player VIDEOJS: ERROR: TypeError: Cannot read properties of undefined (reading 'value')
5 participants