Node APP , Node.js Version v24.11.0
SDK: @zoom/rtms 0.0.7
Using the example below, I successfully created audio profiles for different participants, but onUserUpdate did not receive any events. I’m wondering if there are any other points to note or that I need to practice.
// Create RTMS Client
const client = new rtms.Client();
client.setAudioParams({
codec: rtms.AudioCodec.L16,
sampleRate: rtms.AudioSampleRate.SR_16K,
channel: rtms.AudioChannel.MONO,
dataOpt: rtms.AudioDataOption.AUDIO_MULTI_STREAMS,
duration: 20,
frameSize: 320,
contentType: rtms.AudioContentType.RAW_AUDIO,
});
client.onUserUpdate((op: number, participantInfo: any) => {
logger.info(`onUserUpdate event: UUID: ${meetingUuid}, op: ${op}`);
});
client.onAudioData(async(){
// (Omitted) There was successful receipt of audio data, which was actually saved as a WAV file.
});
client.join({
meeting_uuid: meetingUuid,
rtms_stream_id: streamId,
server_urls: serverUrls,
client: appClient,
secret: appSecret,
pollInterval: 10,
timeout: 30000,
});