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-09-27 15:00:39 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4e39b2d150326a7abf670b82a1abf68055856a88
4e39b2d1
1 parent
d397a17b
fix: 在热点频道下,进入横屏视频详情,点击分享按钮后,再取消分享,视频不能续播
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerFullScreenView.ets
sight_harmony/features/wdShare/src/main/ets/WDShare.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerFullScreenView.ets
View file @
4e39b2d
...
...
@@ -35,10 +35,12 @@ export struct PlayerFullScreenView {
share() {
this.playerController?.switchPlayOrPause()
WDShare.shareContent(this.contentDetailData)
// WDShare.shareContent(this.contentDetailData).then(() => {
// this.playerController?.switchPlayOrPause()
// })
WDShare.shareContent(this.contentDetailData).then((res) => {
// console.log(TAG, "分享弹框关闭", res);
if(res == 'dismiss') {
this.playerController?.switchPlayOrPause()
}
})
}
updateProgress() {
...
...
sight_harmony/features/wdShare/src/main/ets/WDShare.ets
View file @
4e39b2d
...
...
@@ -9,10 +9,9 @@ import { AppInnerLinkGenerator } from 'wdRouter';
export class WDShare {
static shareContent(content: ContentDetailDTO, pageName: string ="", pageId: string = "") {
//TODO: 处理分享弹框交互和 海报逻辑
static shareContent(content: ContentDetailDTO, pageName: string = "", pageId: string = ""): Promise<string> {
return new Promise((resolve, reject) => {
// 处理分享弹框交互和海报逻辑
WDShareBase.getInstance().share({
to: ShareType.System,
scene: ShareScene.System,
...
...
@@ -21,10 +20,17 @@ export class WDShare {
title: content.shareInfo.shareTitle,
desc: content.shareInfo.shareSummary,
link: content.shareInfo.shareUrl,
deeplink:AppInnerLinkGenerator.generateDeepLinkWithConent(content),
posterImg:$r("app.media.test_share_poster"),
deeplink: AppInnerLinkGenerator.generateDeepLinkWithConent(content),
posterImg: $r("app.media.test_share_poster"),
}
})
})?.then((res) => {
// console.log("分享成功", res);
resolve(res);
}).catch((() => {
// console.error("分享失败");
reject("error");
}))
});
}
static shareProgram(program: ContentDTO, pageName: string ="", pageId: string = "") {
...
...
Please
register
or
login
to post a comment