You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
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:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: