ref |> 文章详情页中-视频播放与语音播放同时播放了;
http://192.168.1.3:8080/zentao/bug-view-20630.html Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Showing
1 changed file
with
10 additions
and
0 deletions
| @@ -74,6 +74,16 @@ export struct WdWebLocalComponent { | @@ -74,6 +74,16 @@ export struct WdWebLocalComponent { | ||
| 74 | 74 | ||
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | + aboutToAppear(): void { | ||
| 78 | + EmitterUtils.receiveEvent(EmitterEventId.AUDIO_CHANGE_STATUS, (status) => { | ||
| 79 | + Logger.debug(TAG, "接收音频播放状态 = " + status); | ||
| 80 | + if (!this.isPause) { | ||
| 81 | + this.controller.pause() | ||
| 82 | + this.cancelProgressTimer() | ||
| 83 | + } | ||
| 84 | + }) | ||
| 85 | + } | ||
| 86 | + | ||
| 77 | build() { | 87 | build() { |
| 78 | Column() { | 88 | Column() { |
| 79 | Row() { | 89 | Row() { |
-
Please register or login to post a comment