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

Wrong caption icon (including demo) #4358

Closed
jakubkrolikowski opened this issue Jul 15, 2022 · 4 comments · Fixed by #4384 or #4273
Closed

Wrong caption icon (including demo) #4358

jakubkrolikowski opened this issue Jul 15, 2022 · 4 comments · Fixed by #4384 or #4273
Assignees
Labels
component: UI The issue involves the Shaka Player UI priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@jakubkrolikowski
Copy link

Have you read the FAQ and checked for duplicate open issues?
yes

What version of Shaka Player are you using?
3.3x, 4.1.x

Can you reproduce the issue with our latest release version?
yes

Can you reproduce the issue with the latest code from main?
yes

Are you using the demo app or your own custom app?
yes

What did you do?

I think the caption select icon in the overflow menu is set to "OFF" when it should be in "ON" mode.
When any subtitles track is selected the icon should be ON. Currently, icon says "captions are disabled" when they are not.
Look at Angel One demo:

image

The bug is in shaka-player/ui/text_selection.js:

 onCaptionStateChange_() {
    if (this.player.isTextTrackVisible()) {
      this.icon.textContent =
          shaka.ui.Enums.MaterialDesignIcons.CLOSED_CAPTIONS_OFF; // here should be CLOSED_CAPTIONS
      this.button.ariaPressed = 'true';
    } else {
      this.icon.textContent =
          shaka.ui.Enums.MaterialDesignIcons.CLOSED_CAPTIONS; // here should be CLOSED_CAPTIONS_OFF
      this.button.ariaPressed = 'false';
    }

    this.controls.dispatchEvent(
        new shaka.util.FakeEvent('captionselectionupdated'));
  }
@jakubkrolikowski jakubkrolikowski added the type: bug Something isn't working correctly label Jul 15, 2022
@github-actions github-actions bot added this to the v4.2 milestone Jul 15, 2022
@joeyparrish joeyparrish added component: UI The issue involves the Shaka Player UI priority: P2 Smaller impact or easy workaround labels Jul 22, 2022
@joeyparrish
Copy link
Member

Yes, I think you're right! Would you care to make a PR to resolve this?

@kartikeyshaurya
Copy link
Contributor

@joeyparrish @jakubkrolikowski could i work on this

@jakubkrolikowski
Copy link
Author

@kartikeyshaurya Yes, please, I'm out of office till August 22nd.

@joeyparrish
Copy link
Member

@kartikeyshaurya, I assigned the issue to you. You should always feel free to work on PRs without waiting for assignment, though.

kartikeyshaurya added a commit to kartikeyshaurya/shaka-player that referenced this issue Aug 2, 2022
kartikeyshaurya pushed a commit to kartikeyshaurya/shaka-player that referenced this issue Aug 4, 2022
@avelad avelad linked a pull request Aug 9, 2022 that will close this issue
10 tasks
joeyparrish pushed a commit that referenced this issue Aug 10, 2022
Reviewed-by: @anshgo01yal 
Co-authored-by: Joey Parrish <[email protected]>
Co-authored-by: Álvaro Velad Galván <[email protected]>

Closes #4358
joeyparrish pushed a commit that referenced this issue Aug 16, 2022
Reviewed-by: @anshgo01yal 
Co-authored-by: Joey Parrish <[email protected]>
Co-authored-by: Álvaro Velad Galván <[email protected]>

Closes #4358
joeyparrish pushed a commit that referenced this issue Aug 16, 2022
Reviewed-by: @anshgo01yal 
Co-authored-by: Joey Parrish <[email protected]>
Co-authored-by: Álvaro Velad Galván <[email protected]>

Closes #4358
joeyparrish pushed a commit that referenced this issue Aug 16, 2022
Reviewed-by: @anshgo01yal 
Co-authored-by: Joey Parrish <[email protected]>
Co-authored-by: Álvaro Velad Galván <[email protected]>

Closes #4358
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Oct 9, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: UI The issue involves the Shaka Player UI priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
3 participants