Skip to content
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

Dynamic skip threshold #1329

Merged
merged 1 commit into from
May 7, 2024
Merged

Dynamic skip threshold #1329

merged 1 commit into from
May 7, 2024

Conversation

lkiesow
Copy link
Member

@lkiesow lkiesow commented May 6, 2024

The hard-coded threshold of 3s for skipping to the previous segment instead of skipping to the start of the segment can be too long for short videos, where visually, you are far away from the actual cut mark.

Screenshot from 2024-05-06 19-03-42

This patch fixes the problem by making this a dynamic threshold based on the video duration with a minimum of 0.5s (guarding against a non-set video duration) and a maximum of 3s.

The hard-coded threshold of 3s for skipping to the previous segment
instead of skipping to the start of the segment can be too long for
short videos, where visually, you are far away from the actual cut mark.

This patch fixes the problem by making this a dynamic threshold based on
the video duration with a minimum of 0.5s (guarding against a non-set
video duration) and a maximum of 3s.
Copy link

github-actions bot commented May 6, 2024

This pull request is deployed at test.editor.opencast.org/1329/2024-05-06_17-38-41/ .
It might take a few minutes for it to become available.

@lkiesow lkiesow added the type:enhancement New feature or request label May 6, 2024
@dennis531
Copy link
Collaborator

Thanks for the fix! It looks good to me.

Note: The maximum threshold of 3 seconds is reached with a video duration of 5 minutes. Otherwise it will be shorter.

@lkiesow
Copy link
Member Author

lkiesow commented May 7, 2024

Thanks for the review. Merging this so I can prep the new release…

@lkiesow lkiesow merged commit d8160de into opencast:main May 7, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants