wangliang_wd

Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main

* 'main' of http://192.168.1.42/developOne/harmonyPool:
  fix |> 修复退出横屏时视频简介以及号主信息会在横屏左侧展示问题
@@ -3,7 +3,7 @@ import { PlayerTitleView } from './PlayerTitleView' @@ -3,7 +3,7 @@ import { PlayerTitleView } from './PlayerTitleView'
3 import { PlayerProgressView } from './PlayerProgressView' 3 import { PlayerProgressView } from './PlayerProgressView'
4 import { ContentDetailDTO } from 'wdBean/Index'; 4 import { ContentDetailDTO } from 'wdBean/Index';
5 import { DisplayDirection } from 'wdConstant/Index'; 5 import { DisplayDirection } from 'wdConstant/Index';
6 - 6 +import { EmitterEventId, EmitterUtils, Logger } from 'wdKit';
7 @Component 7 @Component
8 export struct PlayerBottomView { 8 export struct PlayerBottomView {
9 private playerController?: WDPlayerController; 9 private playerController?: WDPlayerController;
@@ -15,8 +15,17 @@ export struct PlayerBottomView { @@ -15,8 +15,17 @@ export struct PlayerBottomView {
15 @Consume displayDirection: DisplayDirection 15 @Consume displayDirection: DisplayDirection
16 @Prop index: number = 0 16 @Prop index: number = 0
17 @Prop currentIndex: number = 0 17 @Prop currentIndex: number = 0
  18 + @State isLayoutFullScreen: boolean = false
18 19
19 aboutToAppear(): void { 20 aboutToAppear(): void {
  21 +
  22 + EmitterUtils.receiveEvent(EmitterEventId.FULL_SCREEN, (str?: string) => {
  23 + // Logger.debug(TAG, 'receiveEvent FULL_SCREEN: ' + str)
  24 +
  25 + setTimeout(()=>{
  26 + this.isLayoutFullScreen = str == '1' ? true : false
  27 + },200)
  28 + })
20 } 29 }
21 30
22 build() { 31 build() {
@@ -37,7 +46,6 @@ export struct PlayerBottomView { @@ -37,7 +46,6 @@ export struct PlayerBottomView {
37 ['rgba(0, 0, 0, 0.0)', 0.0], ['rgba(0, 0, 0, 0.5)', 1.0] 46 ['rgba(0, 0, 0, 0.0)', 0.0], ['rgba(0, 0, 0, 0.5)', 1.0]
38 ] 47 ]
39 }) 48 })
40 - .visibility(this.displayDirection === DisplayDirection.VERTICAL ?  
41 - Visibility.Visible : Visibility.None) 49 + .visibility(this.isLayoutFullScreen ? Visibility.None:Visibility.Visible)
42 } 50 }
43 } 51 }