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-06-20 16:40:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
40c3252789c092579ce095dd821f8829f112e459
40c32527
1 parent
8283ecb3
fix(16650): 功能缺陷--进入横屏直播页,全屏后,点击分享按钮没有反应
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletions
sight_harmony/features/wdDetailPlayLive/oh-package.json5
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/details/video/PlayUIComponent.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerTitleComponent.ets
sight_harmony/features/wdDetailPlayLive/oh-package.json5
View file @
40c3252
...
...
@@ -16,6 +16,7 @@
"wdConstant"
:
"file:../../commons/wdConstant"
,
"wdDetailPlayApi"
:
"file:../../features/wdDetailPlayApi"
,
"wdRouter"
:
"file:../../commons/wdRouter"
,
"wdTracking"
:
"file:../../features/wdTracking"
"wdTracking"
:
"file:../../features/wdTracking"
,
"wdShare"
:
"file:../../features/wdShare"
}
}
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/details/video/PlayUIComponent.ets
View file @
40c3252
...
...
@@ -6,6 +6,7 @@ import { DateFormatUtil, PlayerConstants, WDAliPlayerController } from 'wdPlayer
import { ContentDetailDTO, LiveRoomDataBean } from 'wdBean/Index';
import { DisplayDirection } from 'wdConstant/Index';
import { LiveFollowComponent, LottieView } from 'wdComponent/Index';
import { WDShare } from 'wdShare/Index';
//直播间播放器上层覆盖物
@Component
export struct PlayUIComponent {
...
...
@@ -123,6 +124,9 @@ export struct PlayUIComponent {
.width(24)
.aspectRatio(1)
.visibility(this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL ? Visibility.Visible : Visibility.None)
.onClick(() => {
WDShare.shareContent(this.contentDetailData)
})
}
.width('100%')
.alignItems(VerticalAlign.Center)
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerTitleComponent.ets
View file @
40c3252
...
...
@@ -5,6 +5,7 @@ import { NumberFormatterUtils, WindowModel } from 'wdKit/Index'
import { window } from '@kit.ArkUI'
import { WDAliPlayerController } from 'wdPlayer/Index'
import { DisplayDirection } from 'wdConstant/Index'
import { WDShare } from 'wdShare/Index'
/**
* 沉浸式直播--- 头部标题
...
...
@@ -76,6 +77,9 @@ export struct PlayerTitleComponent {
.aspectRatio(1)
.visibility((this.isLarge && this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL) ? Visibility.Visible : Visibility.None)
.margin({right:16})
.onClick(() => {
WDShare.shareContent(this.contentDetailData)
})
}.margin({ bottom: 10 })
Row() {
...
...
Please
register
or
login
to post a comment