Showing
1 changed file
with
3 additions
and
2 deletions
| @@ -59,13 +59,14 @@ struct LaunchAdvertisingPage { | @@ -59,13 +59,14 @@ struct LaunchAdvertisingPage { | ||
| 59 | Stack({alignContent:Alignment.Bottom}){ | 59 | Stack({alignContent:Alignment.Bottom}){ |
| 60 | Stack({alignContent:Alignment.Bottom}){ | 60 | Stack({alignContent:Alignment.Bottom}){ |
| 61 | Column(){ | 61 | Column(){ |
| 62 | - if(this.defaultModel.showType === '1'){ | 62 | + if(this.defaultModel.showType == '2'){ |
| 63 | //显示视频播放 | 63 | //显示视频播放 |
| 64 | Video({ | 64 | Video({ |
| 65 | src: this.defaultModel.bootVideoUrl, | 65 | src: this.defaultModel.bootVideoUrl, |
| 66 | previewUri: this.defaultModel.bootVideoScreenUrl, | 66 | previewUri: this.defaultModel.bootVideoScreenUrl, |
| 67 | controller: this.controller | 67 | controller: this.controller |
| 68 | - }) | 68 | + }).controls(false) |
| 69 | + .autoPlay(true) | ||
| 69 | .objectFit(ImageFit.Contain) //设置视频适配模式 | 70 | .objectFit(ImageFit.Contain) //设置视频适配模式 |
| 70 | .width('100%') | 71 | .width('100%') |
| 71 | .height('100%') | 72 | .height('100%') |
-
Please register or login to post a comment