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
王士厅
2024-07-19 15:08:11 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b08b3732ebe30d5c95f4452490699a307ef06c34
b08b3732
1 parent
34c5171c
fix: 竖屏直播回看bug
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
5 deletions
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerInfoComponent.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerTitleComponent.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerUIComponent.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerVideoControlComponent.ets
sight_harmony/features/wdPlayer/src/main/ets/pages/WDPlayerRenderVLiveView.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerInfoComponent.ets
View file @
b08b373
...
...
@@ -10,6 +10,7 @@ export struct PlayerInfoComponent {
@Consume liveState: string
@Consume isShowControl: boolean
@Link swiperIndex: number
@Provide isFullScreen: boolean = false // 判断是否全屏,全屏状态下swiper禁止切换
build() {
...
...
@@ -37,6 +38,7 @@ export struct PlayerInfoComponent {
.onChange((index) => {
this.swiperIndex = index
})
.disableSwipe(this.isFullScreen)
}
.height('100%')
.width('100%')
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerTitleComponent.ets
View file @
b08b373
...
...
@@ -19,6 +19,7 @@ export struct PlayerTitleComponent {
@Consume displayDirection: DisplayDirection
@State isLarge:boolean = false
private playerController?: WDAliPlayerController
@Consume isFullScreen: boolean
aboutToAppear(): void {
if (!this.playerController) {
...
...
@@ -64,6 +65,7 @@ export struct PlayerTitleComponent {
// this.playerController.onVideoSizePlayerUIComponentMethod(2,1);
// }
}
this.isFullScreen = false
})
Text(this.contentDetailData.newsTitle || '')
.maxLines(2)
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerUIComponent.ets
View file @
b08b373
...
...
@@ -14,6 +14,7 @@ export struct PlayerUIComponent {
private playerController?: WDAliPlayerController
@Provide isSmall:boolean = false
@Consume isShowControl: boolean
@Consume isFullScreen: boolean
@Consume displayDirection: DisplayDirection
aboutToAppear() {
if (!this.playerController) {
...
...
@@ -56,6 +57,7 @@ export struct PlayerUIComponent {
this.playerController.onVideoSizePlayerTitleComponentBack(1,2)
}
}
this.isFullScreen = true
})
.visibility(this.isSmall ? Visibility.Visible : Visibility.Hidden)
.margin({ top: 301}) // 195 + 211 - 105
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerVideoControlComponent.ets
View file @
b08b373
...
...
@@ -17,6 +17,7 @@ export struct PlayerVideoControlComponent {
@Consume displayDirection: DisplayDirection
@Consume contentDetailData: ContentDetailDTO
@Consume isSmall:boolean
@Consume isFullScreen: boolean
aboutToAppear(): void {
if (this.playerController) {
...
...
@@ -88,6 +89,7 @@ export struct PlayerVideoControlComponent {
this.playerController.onVideoSizePlayerTitleComponentBack(1,2)
}
}
this.isFullScreen = true
})
}
}
...
...
sight_harmony/features/wdPlayer/src/main/ets/pages/WDPlayerRenderVLiveView.ets
View file @
b08b373
...
...
@@ -96,11 +96,10 @@ export struct WDPlayerRenderVLiveView {
if (this.onLoad) {
this.onLoad(event)
}
})
.width(this.selfSize.width)
.height(this.selfSize.height)
/*.height('100%')
.width('100%')*/
})// .width(this.selfSize.width)
// .height(this.selfSize.height)
.height('100%')
.width('100%')
.renderFit(RenderFit.RESIZE_FILL)
}
.id(this.insId)
...
...
Please
register
or
login
to post a comment