Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-07-17 16:36:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
879a7110f370e32a23fa895a734fc7f23273224d
879a7110
1 parent
0e89233c
feat:优化启动广告,视频播放
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchAdvertisingPage.ets
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchAdvertisingPage.ets
View file @
879a711
...
...
@@ -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%')
...
...
Please
register
or
login
to post a comment