androidvideografika

how to limit project grafika circular continuous camera recorder maximum seconds?


there is a MAX_LENGTH value that we can set. that value limits the recording approximately.. sometimes it can get up to double. so lets say i set the value of MAX_LENGTH to 15 then launch the app and start recording sometimes it exceed that limitation and get to 30! that limitation mechanism is broken.. there is a way to hard limit it so it won't exceed MAX_LENGTH ever? thanks


Solution

  • First

    Grafika is experimental and has no support. From the README file:

    It's not stable.

    It's not polished or well tested. Expect the UI to be ugly and awkward.

    It's not intended as a demonstration of the proper way to do things. The code may handle edge cases poorly or not at all. Logging is often left enabled at a moderately verbose level.

    It's barely documented.

    It's generally just not supported.

    Second

    The code comment itself specifies that the FPS can be variable:

    Opens a camera, and attempts to establish preview mode at the specified width and height.

    Sets mCameraPreviewFps to the expected frame rate (which might actually be variable).

    Source Code: https://github.com/google/grafika/blob/master/src/com/android/grafika/ContinuousCaptureActivity.java