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

[BUG] "enableCaption: false" still displays a caption on the video. #287

Open
lmk302 opened this issue Jul 11, 2020 · 5 comments
Open

[BUG] "enableCaption: false" still displays a caption on the video. #287

lmk302 opened this issue Jul 11, 2020 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@lmk302
Copy link

lmk302 commented Jul 11, 2020

Describe the bug
When the argument of enableCaption is set to false for YoutubePlayerFlags, the youtube video still shows the caption on the video.

To Reproduce
the code below is the set up for the controller of YoutubePlayer

_controller = YoutubePlayerController(
initialVideoId: _ids.first,
flags: const YoutubePlayerFlags(
enableCaption: false,
captionLanguage: 'en',
mute: false,
autoPlay: true,
disableDragSeek: false,
loop: false,
isLive: false,
forceHD: false,
startAt: 0,
),

Expected behavior
The controller with "enableCaption: false" is not supposed to put a caption on the youtube video.

Screenshots
If applicable, add screenshots to help explain your problem.

Technical Details:

  • Device: Android emulator, Galaxy s10+
  • OS: Android 10
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@lmk302 lmk302 added the bug Something isn't working label Jul 11, 2020
@tuanbs
Copy link

tuanbs commented Jul 12, 2020

Got same issue.

@sarbagyastha
Copy link
Owner

Will look into it.

@english-aha-center
Copy link

Got Same issue. Not yet?

@buildtheui
Copy link
Contributor

As I can tell from the youtube Iframe API https://developers.google.com/youtube/player_parameters?hl=es-419#Parameters. the cc_load_policy only accepts one parameter 1, to force the video to show always the CC, however if cc_load_policy is not set or it's value is different from 1, youtube decides whether to show the subtitles or not ("based on the user's preferences", I think they do it for accessibility reasons though). So maybe the only way to hide them it's by javascript manipulation...

@minhhx
Copy link

minhhx commented Feb 26, 2021

Same issue for me. Only happened on some iOS devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants