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

set max duration #50

Closed
developercrazy021 opened this issue May 27, 2021 · 2 comments
Closed

set max duration #50

developercrazy021 opened this issue May 27, 2021 · 2 comments
Labels
question Further information is requested

Comments

@developercrazy021
Copy link

hello
tnx for this library because is the best
how can set max duration ?

@a914-gowtham
Copy link
Owner

a914-gowtham commented May 28, 2021

You can use below code.

TrimVideo.activity(videoUri)
          .setTrimType(TrimType.MIN_MAX_DURATION)
          .setMinToMax(10, 30)  //seconds
          .start(this);

The issue with this is max duration is not restricted by seekbar, done option menu will be disabled if it exceed the max duration and a error toast will be shown when click option menu. there is a open issue regarding this #34

@a914-gowtham a914-gowtham added the question Further information is requested label May 28, 2021
@developercrazy021
Copy link
Author

I mean set max duration to seekbar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants