diff --git a/entry/src/main/ets/view/SampleUnitAVPlayView.ets b/entry/src/main/ets/view/SampleUnitAVPlayView.ets index 0bb0eae439686e3b5aa979bc58cc4cf00ee7727c..7327451f142f5858dfe06005ebbf91b5223d6aa2 100644 --- a/entry/src/main/ets/view/SampleUnitAVPlayView.ets +++ b/entry/src/main/ets/view/SampleUnitAVPlayView.ets @@ -93,11 +93,10 @@ export default struct SampleUnitAVPlayView { .height(this.xComponentHeight) .width(this.xComponentWidth) - Slider({ value: this.curTime, min: 0, max: 100 }) .enabled(false) .height(4) - .width(this.sliderWidth) + .width(320) .trackThickness(3) .blockColor(Color.Red) .blockSize({ width: 4, height: 4 }) diff --git a/entry/src/main/ets/view/SampleUnitVideoSecondView.ets b/entry/src/main/ets/view/SampleUnitVideoSecondView.ets index 90baff805d28e3320536ee8512d4e105b2f48734..0f8f6ad55ba45c0d32a8bacbf347cc01540b745e 100644 --- a/entry/src/main/ets/view/SampleUnitVideoSecondView.ets +++ b/entry/src/main/ets/view/SampleUnitVideoSecondView.ets @@ -42,8 +42,7 @@ export default struct SampleUnitVideoSecondView { isLoading: boolean = false; build() { - Stack({ alignContent: Alignment.BottomStart }) { - + Stack({ alignContent: Alignment.Bottom }) { Video({ src: $rawfile(VIDEO_NAME), previewUri: $r('app.media.j'), @@ -80,7 +79,7 @@ export default struct SampleUnitVideoSecondView { Slider({ value: this.curTime, min: 0, max: 100 }) .enabled(false) .height(4) - .width(CONSTANT.FULL_SIZE) + .width(320) .trackThickness(3) .blockColor(Color.Red) .blockSize({ width: 4, height: 4 })