@newgameplusinc/odyssey-audio-video-sdk-dev 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -397,8 +397,17 @@ class OdysseySpatialComms extends EventManager_1.EventManager {
|
|
|
397
397
|
// CRITICAL: Do NOT setup spatial audio for local participant (yourself)
|
|
398
398
|
// This prevents hearing your own microphone (loopback)
|
|
399
399
|
const isLocalParticipant = participant.participantId === this.localParticipant?.participantId;
|
|
400
|
+
console.log("🔍 SDK: Checking if local participant:", {
|
|
401
|
+
participantId: participant.participantId,
|
|
402
|
+
localParticipantId: this.localParticipant?.participantId,
|
|
403
|
+
isLocalParticipant,
|
|
404
|
+
producerId: data.producerId,
|
|
405
|
+
trackKind: track.kind
|
|
406
|
+
});
|
|
400
407
|
if (isLocalParticipant) {
|
|
401
|
-
console.
|
|
408
|
+
console.warn("🔇 SDK: SKIPPING spatial audio for LOCAL participant (yourself) - prevents loopback", participant.participantId);
|
|
409
|
+
// Do NOT connect this audio to Web Audio API
|
|
410
|
+
return; // Exit early to prevent any audio processing
|
|
402
411
|
}
|
|
403
412
|
else {
|
|
404
413
|
console.log("🎧 SDK: Setting up spatial audio for REMOTE participant", participant.participantId);
|
package/package.json
CHANGED