wangliang_wd

feat:优化启动广告,视频播放

... ... @@ -59,13 +59,14 @@ struct LaunchAdvertisingPage {
Stack({alignContent:Alignment.Bottom}){
Stack({alignContent:Alignment.Bottom}){
Column(){
if(this.defaultModel.showType === '1'){
if(this.defaultModel.showType == '2'){
//显示视频播放
Video({
src: this.defaultModel.bootVideoUrl,
previewUri: this.defaultModel.bootVideoScreenUrl,
controller: this.controller
})
}).controls(false)
.autoPlay(true)
.objectFit(ImageFit.Contain) //设置视频适配模式
.width('100%')
.height('100%')
... ...