Demo: Shorten default trim range from 10s to 1s.

Shorten the demo's default trim range from 0-10s to 0-1s, and change the
UI-supported trim range from 0-60s to 0-10s.

Most demo videos aren't very long, and the default demo is 10 seconds.

The use-case for trimming in the demo seems to be mostly for validating trimming
works, or generating test media. Test media should tend to be short in order to be
small, so shortening the trim range helps this be accomplished more effectively.

PiperOrigin-RevId: 517103583
This commit is contained in:
huangdarwin 2023-03-16 13:21:53 +00:00 committed by Rohit Singh
parent 8a5fcf82d3
commit 236748070c
2 changed files with 2 additions and 2 deletions

View File

@ -573,7 +573,7 @@ public final class ConfigurationActivity extends AppCompatActivity {
View dialogView = getLayoutInflater().inflate(R.layout.trim_options, /* root= */ null);
RangeSlider trimRangeSlider =
checkNotNull(dialogView.findViewById(R.id.trim_bounds_range_slider));
trimRangeSlider.setValues(0f, 10f); // seconds
trimRangeSlider.setValues(0f, 1f); // seconds
new AlertDialog.Builder(/* context= */ this)
.setView(dialogView)
.setPositiveButton(

View File

@ -41,7 +41,7 @@
<com.google.android.material.slider.RangeSlider
android:id="@+id/trim_bounds_range_slider"
android:valueFrom="0.0"
android:valueTo="60.0"
android:valueTo="10.0"
android:layout_gravity="right"/>
</TableRow>
</TableLayout>