diff --git a/wasm/src/avs_pc.ts b/wasm/src/avs_pc.ts index 1e7bf1b79..21adf7efa 100644 --- a/wasm/src/avs_pc.ts +++ b/wasm/src/avs_pc.ts @@ -1346,7 +1346,7 @@ function pc_Create(hnd: number, privacy: number, conv_type: number) { pc_log(LOG_LEVEL_INFO, `onTrack: calling ash(${pc.convid}, ${label}) with ${event.streams.length} streams`); audioStreamHandler( pc.convid, - label, + hnd.toString() + label, event.streams); } if (event.track.kind == "video" && videoStreamHandler) { @@ -1387,7 +1387,7 @@ function pc_Close(hnd: number) { const label = track.label; if (audioStreamHandler && pc.rtc) { pc_log(LOG_LEVEL_INFO, `pc_Close: calling ash(${pc.convid}, ${label}) with 0 streams`); - audioStreamHandler(pc.convid, label, null); + audioStreamHandler(pc.convid, hnd.toString() + label, null); } } }); @@ -1832,7 +1832,7 @@ function pc_RemoveUserInfo(hnd: number, labelPtr: number) { if (pc.users.hasOwnProperty(label)) { if (audioStreamHandler) { pc_log(LOG_LEVEL_INFO, `pcRemoveUserInfo: calling ash(${pc.convid}, ${label}) with 0 streams`); - audioStreamHandler(pc.convid, label, null); + audioStreamHandler(pc.convid, hnd.toString() + label, null); } delete pc.users[label]; }