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

How to disable subtitle #70

Closed
AhmadFalahian opened this issue May 25, 2022 · 7 comments
Closed

How to disable subtitle #70

AhmadFalahian opened this issue May 25, 2022 · 7 comments
Labels
enhancement New feature or request

Comments

@AhmadFalahian
Copy link

How to disable subtitle playback?
I did this with the detach() function, but the playback did not stop

subtitleController.detach();

@AhmadFalahian AhmadFalahian added the bug Something isn't working label May 25, 2022
@Joran-Dob
Copy link
Owner

Hi,

I overlooked this project for a bit! Trying to find some time this week to resolve some of the issues or provide some input. Thanks for the information 🚀

@hardiklakhalani
Copy link

I see the showSubtitle parameter is final so it's not letting toggle the value. what could be the purpose to not let it toggle?

@batoul-alani
Copy link

is there any solution for this issue?

@braddonako
Copy link

@hardiklakhalani , have you found a way to toggle the subtitles? I am looking toggle the captions as well, but have had no luck.

@Gameworl
Copy link

Gameworl commented Dec 5, 2023

hello, any update on this issue ?

@ArturAntin
Copy link

had the same problem, quick and super hacky solution: make text color and background transparent when you want to hide it.

SubtitleWrapper( videoChild: VideoPlayer(_videoController), subtitleController: _subtitleController, subtitleStyle: SubtitleStyle( textColor: _subtitlesOn ? Colors.white : Colors.transparent, fontSize: 20, position: SubtitlePosition( bottom: 90, right: 16, left: 16, ), ), backgroundColor: _subtitlesOn ? Colors.black.withOpacity(.5) : Colors.transparent, videoPlayerController: _videoController, ),

@Joran-Dob Joran-Dob added enhancement New feature or request and removed bug Something isn't working labels Apr 2, 2024
Repository owner deleted a comment from batoul-alani Apr 2, 2024
@Joran-Dob
Copy link
Owner

Will close for now as duplicate of #50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants