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'
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
... ...