Skip to content

On video frames scrolling, start and end milliseconds value in listener return at initial parameters #3

@thorny84

Description

@thorny84

Suppose i have a video of 00:20 time, and i set a maximum trim of 00:10, if i scroll the video frames until the end, i will have a trim from 00:10 to 00:20. But if i move the right cursor to the left, the values ​​return to the previous ones.

Integrating the library I solved this by modifying VideoTrimmerPresenter.kt method:

    override fun onDragRangeBarEnd(left: Float, right: Float) {
        calculateSelectedArea(left, right)
        onSelectedRangeChangedListener?.onSelectRangeEnd(rawStartMillis, rawEndMillis)
    }

in this:

    override fun onDragRangeBarEnd(left: Float, right: Float) {
        calculateSelectedArea(left, right)
        onSelectedRangeChangedListener?.onSelectRangeEnd(startMillis, endMillis)
    }

I look forward to getting feedback :]
thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions