Skip to content

Commit 3d761af

Browse files
committed
feat: JoinAudioChannel完善了onAudioVolumeIndication回调打印
1 parent 03ee8be commit 3d761af

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

HarmonyOS_NEXT/APIExample/entry/src/main/ets/pages/basic/JoinAudioChannel.ets

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { backgroundTaskManager } from '@kit.BackgroundTasksKit';
2525
import { BusinessError } from '@kit.BasicServicesKit';
2626
import { AVCastPicker } from '@kit.AVSessionKit';
2727
import { audio } from '@kit.AudioKit';
28-
import image from '@ohos.multimedia.image';
2928

3029
const TAG: string = 'JoinAudioChannel'
3130

@@ -150,7 +149,7 @@ struct JoinAudioChannel {
150149
config.mAppId = AppID;
151150
config.mEventHandler = {};
152151
config.mEventHandler.onAudioVolumeIndication = (speakers: Array<AudioVolumeInfo>, totalVolume: number) => {
153-
Logger.info(`totalVolume:${totalVolume} speakers:${JSON.stringify(speakers)}`)
152+
Logger.info(TAG,`onAudioVolumeIndication totalVolume:${totalVolume} speakers:${JSON.stringify(speakers)}`)
154153
}
155154
config.mEventHandler.onUserJoined = (uid: number, collapse: number) => {
156155
Logger.info(TAG, "mEventHandler.onUserJoined: " + uid + " , " + collapse);

0 commit comments

Comments
 (0)