Video Duration Limit option not working
See original GitHub issueI’m setting the durationLimit upload to be at 5 seconds but the picker allows videos that are greater than 5 seconds like 30 seconds.
Is this a bug? What is the expected behavior when a durationLimit is set and a user tries to upload a video greater? Is there supposed to be a warning, etc?
const options = {
mediaType: 'video',
videoQuality: 'medium',
durationLimit: 5,
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:9
Top Results From Across the Web
Video Duration Limit option not working · Issue #534 - GitHub
I'm setting the durationLimit upload to be at 5 seconds but the picker allows videos that are greater than 5 seconds like 30...
Read more >Setting the video duration limit not working - Treehouse
Another not-great workaround is to message the user to record less than 10 seconds and then check the file size once the video...
Read more >Upload videos longer than 15 minutes - Android - YouTube Help
Increase your video length limit · Open the YouTube mobile app. · Tap Create addition sign and then · Select a video longer...
Read more >video Duration Limit is not working in iOS 14 and image ...
durationLimit only works for videos taken from camera. For video Duration Limit in iOS ImagePicker.launchCamera( { mediaType: 'video' ...
Read more >Enabling Longer Videos In YouTube
Enabling Longer Videos In YouTube · Click Increase your limit link at the bottom of the page. Click "Increase your limit." · Follow...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the issue occurred because the ImagePicker’s option
allowsEditing
must betrue
to trim a video.Seems like this works for when capturing a video and setting a duration limit. I guess the durationLimit option doesn’t handle when uploading an existing video from a mobile device that is greater than the durationLimit.
Would this be feature request?