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-26 19:44:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bb7ebd86feb9dbc67fd81a2f8d7f19eaf088d2e4
bb7ebd86
1 parent
26b8985e
语音播报关闭后,重新开启语音播报鸿蒙版是续播安卓是重新播放
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/viewmodel/AudioSuspensionModel.ets
sight_harmony/features/wdPlayer/src/main/ets/controller/WDPlayerController.ets
sight_harmony/features/wdComponent/src/main/ets/viewmodel/AudioSuspensionModel.ets
View file @
bb7ebd8
...
...
@@ -48,8 +48,10 @@ export class AudioSuspensionModel {
if (this.isMinimize?.get()) {
EmitterUtils.sendEvent(EmitterEventId.AUDIO_WINDOW_EXPAND, 1)
AppStorage.setOrCreate('isMinimize', false);
}
this.playerController.get().resetPlay()
} else {
this.playerController.get().switchPlayOrPause()
}
} else {
this.url = url
this.playerController.get().firstPlay(url)
...
...
sight_harmony/features/wdPlayer/src/main/ets/controller/WDPlayerController.ets
View file @
bb7ebd8
...
...
@@ -360,6 +360,12 @@ export class WDPlayerController {
// this.progressThis.progressVal = 0;
}
resetPlay() {
this.duration = 0;
this.url = this.avPlayer?.url || '';
this.avPlayer?.reset();
}
onVolumeActionStart(event: GestureEvent) {
this.positionY = event.offsetY;
}
...
...
Please
register
or
login
to post a comment