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
wangliang_wd
2024-11-14 15:35:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
04e2cc55f80d909197f20a8727d8c1b012881050
04e2cc55
1 parent
873478d7
feat:优化早晚报语音播放问题
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletions
sight_harmony/commons/wdKit/src/main/ets/utils/EmitterEventId.ts
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
sight_harmony/commons/wdKit/src/main/ets/utils/EmitterEventId.ts
View file @
04e2cc5
...
...
@@ -57,5 +57,8 @@ export enum EmitterEventId {
// 直播,回看半屏
live_half_SCREEN
=
17
,
//稿件详情
AUDIO_ARTICLE_DETAILS
=
18
,
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
View file @
04e2cc5
...
...
@@ -83,7 +83,7 @@ export struct MorningEveningPaperComponent {
@State currentStatus: number | string |undefined = 0;
@State dailyPaperTopicPageId: string = ''
@State isPlayArticleDetails: boolean = false
private audioDataList: AudioDataList[] = []
private playerController: WDPlayerController = new WDPlayerController();
simpleAudioDialog: CustomDialogController = new CustomDialogController({
...
...
@@ -143,7 +143,16 @@ export struct MorningEveningPaperComponent {
this.fetchData()
}
}
EmitterUtils.receiveEvent(EmitterEventId.AUDIO_ARTICLE_DETAILS,()=>{
this.isPlayArticleDetails = true
this.currentStatus = 3
})
EmitterUtils.receiveEvent(EmitterEventId.AUDIO_CHANGE_STATUS, (val: number | string | undefined) => {
if (this.isPlayArticleDetails) return
console.log(TAG, 'this.currentStatus', val)
this.currentStatus = val
...
...
@@ -479,6 +488,7 @@ export struct MorningEveningPaperComponent {
// dialog.open()
// this.playerController.firstPlay(this.audioPlayUrl, this.audioTitle)
// SPHelper.default.save(SpConstants.APP_NEWS_INFO_DATA_MODEL, JSON.stringify(this.compInfoBean))
this.isPlayArticleDetails = false
this.AudioSuspension.setPlayerUrl(this.audioPlayUrl, this.audioTitle)
// console.log(TAG, "this.audioPlayUrl = " + this.audioPlayUrl)
// console.log("TAG", "cj compInfoBean onClick2 = " + this.isAudioPlaying)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
View file @
04e2cc5
...
...
@@ -410,6 +410,7 @@ export struct OperRowListView {
.gesture(
TapGesture()
.onAction((event: GestureEvent) => {
EmitterUtils.sendEvent(EmitterEventId.AUDIO_ARTICLE_DETAILS)
this.AudioSuspension.setPlayerUrl(this.audioUrl, this.audioTitle, this.contentDetailData.newsId + "", this.contentDetailData.newsSourceName)
TrackingButton.click('suspendedWindow',this.pageId,this.pageName)
}))
...
...
Please
register
or
login
to post a comment