-
Notifications
You must be signed in to change notification settings - Fork 28
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
Recording time not working properly #4
Comments
Hey, thanks for opening the issue! |
@hluhovskyi I've updated the question with the xml snippet |
And one more question. Is problem about length of captured video or about animation duration of button? I mean, if you set duration 38000 is it animating all 38 secs or only 15 ones? |
The length of the captured video is the issue. When I set duration 38000 it animates the 38 secs but the captured video is 15 secs, which is what I want. However the issue with setting it to 38000 is that if I assume the video is at least 3 secs in, when I release the button the captured video is actually less than a second |
@hluhovskyi When I say it animates the 38 secs, I mean the time it takes to finish animating is 38 secs, therefore it progresses more slowly than 15 secs. But still ends up capturing 15 secs of video |
I've double checked listener events and I can say that problem is definitely inside the library which you are using for recording video. Here is my logs when I set video duration to 10 seconds:
As you can see difference in seconds is exactly 10 seconds. I bet, that some method like Please, reach out developers of video recording library or check out docs, cause problem isn't on side of CameraButton. |
Thank you for this awesome library!
I'm having an issue where I'm trying to record a 15 second video however, it seems as if the recording time of the button and cameraview are not in sync.
If I set the button duration to 15000, it only records 4 seconds of video but if I set it to 38000, it records 15 seconds. There is an issue with that also, if I set the duration to 38000, and let go of the button the onCancel method should be called and stop the video at whatever interval it was at (for arguments sake lets say 5 seconds), but this is not the case, it instead stops at less than a second.
On the other hand, if I set the cameraview record duration to 15000, the same thing happens, it records 4 seconds of video and if I let go of the button early it only records less than a second.
XML snippet
The text was updated successfully, but these errors were encountered: