Follows the id of a session: 680bb0c6668f2ceaeb2dc32a
Do I need to leave it open so they can use it or can you proceed with just the ID?
Complementing some information:
Video SDK version: 1.12.5
React version: 18
Next JS version: 14.2.2
OS: Windows 11
Browser: Google Chrome
Browser Version 129.0.6668.70 (Official Build) (64 bits)
It seems this is the session topic, not the session ID. You can get the session ID using client.getSessionInfo().sessionId or from the web portal under the Dashboard.
After analyzing the logs, we found that the mute audio locally function was not actually called. Did you invoke it before the remote user started their audio? Currently, doing so will not take effect.
Thanks for the feedback!
I’m checking why it didn’t appear in the log for you. When I test again by displaying what is being executed in the console, I see the function being called. I’ll leave attachments showing this.
The function is like this:
handleMuteLocalMic = async (
action: "start" | "stop",
users: number | number[] | null
) => {
if (!users || !this.stream) return;
console.log("MUTE MIC LOCALLY 1", users);
// await this.stream.muteAllUserAudioLocally();
if (Array.isArray(users)) {
console.log("MUTE MIC LOCALLY 2", users);
for (const id of users) {
if (action === "start") {
await this.stream.adjustUserAudioVolumeLocally(id, 0);
let a = await this.stream.muteUserAudioLocally(id);
console.log('START a', a);
} else {
let b = await this.stream.unmuteUserAudioLocally(id);
console.log('STOP b', b);
}
}
} else {
if (action === "start") {
await this.stream.adjustUserAudioVolumeLocally(users, 0);
let c = await this.stream.muteUserAudioLocally(users);
console.log('START c', c);
} else {
let d = await this.stream.unmuteUserAudioLocally(users);
console.log('STOP d', d);
}
}
};
We adapted it to also call adjustUserAudioVolumeLocally as an alternative, but it also didn’t work as if it wasn’t being called.
As shown in the prints, the console returns no error when executing the functions.
Since I can’t see the parameters passed to the stream.muteUserAudioLocally method, could you confirm whether stream.muteUserAudioLocally is intended for a remote user instead of the self user?
I tested it using the same browser and Video SDK version, and it worked as expected.