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
chenquansheng
2024-10-29 18:13:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d5e58ec9f3e363fbddbd00f2364fc44134dd37a8
d5e58ec9
1 parent
56cdcaf3
fix |> 修复退出横屏时视频简介以及号主信息会在横屏左侧展示问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerBottomView.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerBottomView.ets
View file @
d5e58ec
...
...
@@ -3,7 +3,7 @@ import { PlayerTitleView } from './PlayerTitleView'
import { PlayerProgressView } from './PlayerProgressView'
import { ContentDetailDTO } from 'wdBean/Index';
import { DisplayDirection } from 'wdConstant/Index';
import { EmitterEventId, EmitterUtils, Logger } from 'wdKit';
@Component
export struct PlayerBottomView {
private playerController?: WDPlayerController;
...
...
@@ -15,8 +15,17 @@ export struct PlayerBottomView {
@Consume displayDirection: DisplayDirection
@Prop index: number = 0
@Prop currentIndex: number = 0
@State isLayoutFullScreen: boolean = false
aboutToAppear(): void {
EmitterUtils.receiveEvent(EmitterEventId.FULL_SCREEN, (str?: string) => {
// Logger.debug(TAG, 'receiveEvent FULL_SCREEN: ' + str)
setTimeout(()=>{
this.isLayoutFullScreen = str == '1' ? true : false
},200)
})
}
build() {
...
...
@@ -37,7 +46,6 @@ export struct PlayerBottomView {
['rgba(0, 0, 0, 0.0)', 0.0], ['rgba(0, 0, 0, 0.5)', 1.0]
]
})
.visibility(this.displayDirection === DisplayDirection.VERTICAL ?
Visibility.Visible : Visibility.None)
.visibility(this.isLayoutFullScreen ? Visibility.None:Visibility.Visible)
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment