Code Monkey home page Code Monkey logo

Comments (6)

hluhovskyi avatar hluhovskyi commented on August 20, 2024

Hey, thanks for opening the issue!
Can you also attach a xml snippet to make a full picture?

from camerabutton.

jeremyjamez avatar jeremyjamez commented on August 20, 2024

@hluhovskyi I've updated the question with the xml snippet

from camerabutton.

hluhovskyi avatar hluhovskyi commented on August 20, 2024

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?

from camerabutton.

jeremyjamez avatar jeremyjamez commented on August 20, 2024

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

from camerabutton.

jeremyjamez avatar jeremyjamez commented on August 20, 2024

@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

from camerabutton.

hluhovskyi avatar hluhovskyi commented on August 20, 2024

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:

06-04 11:25:32.884 32758-32758/com.hluhovskyi.camerabutton V/MainActivity: startRecordVideo = 11:25:32
06-04 11:25:42.914 32758-32758/com.hluhovskyi.camerabutton V/CameraButton: progressAnimator, onAnimationEnd
collapsingAnimator, onAnimationStart
dispatchStateChange EXPANDED -> START_COLLAPSING
06-04 11:25:42.916 32758-32758/com.hluhovskyi.camerabutton V/MainActivity: finishRecordVideo = 11:25:42
06-04 11:25:43.138 32758-32758/com.hluhovskyi.camerabutton V/CameraButton: collapsingAnimator, onAnimationEnd
dispatchStateChange START_COLLAPSING -> DEFAULT

As you can see difference in seconds is exactly 10 seconds. I bet, that some method like cameraView.setSessionType(SessionType.VIDEO); or cameraView.startCapturingVideo(file); requires some asynchronous preparation which takes a lot of time.

Please, reach out developers of video recording library or check out docs, cause problem isn't on side of CameraButton.

from camerabutton.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.