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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxVideo attribute does not work #48

Closed
rahulrrai opened this issue Oct 14, 2021 · 3 comments
Closed

maxVideo attribute does not work #48

rahulrrai opened this issue Oct 14, 2021 · 3 comments

Comments

@rahulrrai
Copy link

No description provided.

@baronha
Copy link
Owner

baronha commented Oct 15, 2021

What is your platform?

@rahulrrai
Copy link
Author

Its android Below is the configuration I m using

const response = await MultipleImagePicker.openPicker({
usedCameraButton: true,
mediaType: 'video',
maxVideoDuration: 12,
maxVideo: 1,
isPreview: false,
});

I can select more than 1 video

@rahulrrai
Copy link
Author

I figured out the cause, the maxVideo value is used only when mediaType is all for mediaType video we are required to use maxSelectedAssets

Maybe the maxVideo description should be updated in the ReadMe to add the above point

Closing the issue

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

No branches or pull requests

2 participants