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

By default subtitles are off #700

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

PranavMasekar
Copy link

#648
Added a parameter showSubtitle by default value is false.

@PranavMasekar
Copy link
Author

Anyone can have the folllow up ont this ??

@diegotori
Copy link
Collaborator

@PranavMasekar Looks good to me. I'll release it this weekend.

@PranavMasekar
Copy link
Author

Sure thanks for the reply @diegotori 🤩🤩

@PranavMasekar
Copy link
Author

@diegotori Any updates on merging this PR ??

1 similar comment
@PranavMasekar
Copy link
Author

@diegotori Any updates on merging this PR ??

Copy link
Collaborator

@diegotori diegotori left a comment

Choose a reason for hiding this comment

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

@PranavMasekar, please re-sync your changes with master's current changes.

Then work on the issues that were called out in your PR.

Thanks in advance.

@@ -422,6 +425,9 @@ class ChewieController extends ChangeNotifier {
/// Add a List of Subtitles here in `Subtitles.subtitle`
Subtitles? subtitle;

/// Option to disable subtitle by default
bool showSubtitle;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make this final.

@@ -422,6 +425,9 @@ class ChewieController extends ChangeNotifier {
/// Add a List of Subtitles here in `Subtitles.subtitle`
Subtitles? subtitle;

/// Option to disable subtitle by default
Copy link
Collaborator

@diegotori diegotori Jul 2, 2023

Choose a reason for hiding this comment

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

Replace the documentation with:

/// 
/// Whether to display subtitles.
///
/// By default, this is set to `false`, which hides them.
/// 

@PranavMasekar
Copy link
Author

@diegotori I have done the changes

@@ -114,6 +114,7 @@ class _ChewieDemoState extends State<ChewieDemo> {
videoPlayerController: _videoPlayerController1,
autoPlay: true,
looping: true,
// showSubtitle: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of commenting it out, expand the example app so that there's a button or something similar that toggles subtitles.

@nateshmbhat
Copy link

any updates on this ?

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.

3 participants