Skip to content

Commit

Permalink
Demo: Shorten trim range from 60 seconds to 10 seconds.
Browse files Browse the repository at this point in the history
Most demo videos aren't very long, and the default demo video is only 10 seconds.

Shorten the maximum trim duration to 10 seconds, to demonstrate transformer functionality more easily, and allow this to be used more easily when trimming short sections of a longer video (ex. to make test clips)

PiperOrigin-RevId: 480602037
(cherry picked from commit 3142a21)
  • Loading branch information
dway123 authored and microkatz committed Oct 12, 2022
1 parent 2244549 commit 4198dde
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -437,7 +437,7 @@ private void selectTrimBounds(View view, boolean isChecked) {
View dialogView = getLayoutInflater().inflate(R.layout.trim_options, /* root= */ null);
RangeSlider trimRangeSlider =
checkNotNull(dialogView.findViewById(R.id.trim_bounds_range_slider));
trimRangeSlider.setValues(0f, 60f); // seconds
trimRangeSlider.setValues(0f, 10f); // seconds
new AlertDialog.Builder(/* context= */ this)
.setView(dialogView)
.setPositiveButton(
Expand Down

0 comments on commit 4198dde

Please sign in to comment.