@newgameplusinc/odyssey-audio-video-sdk-dev 1.0.6 → 1.0.8

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.
Files changed (2) hide show
  1. package/dist/index.js +23 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -125,7 +125,20 @@ class OdysseySpatialComms extends EventManager_1.EventManager {
125
125
  return this.spatialAudioManager.getAudioContextState();
126
126
  }
127
127
  async produceTrack(track) {
128
+ console.log("🎤 SDK: produceTrack called:", {
129
+ kind: track.kind,
130
+ trackId: track.id,
131
+ enabled: track.enabled,
132
+ muted: track.muted,
133
+ readyState: track.readyState,
134
+ localParticipantId: this.localParticipant?.participantId
135
+ });
128
136
  const producer = await this.mediasoupManager.produce(track);
137
+ console.log("✅ SDK: Producer created:", {
138
+ producerId: producer.id,
139
+ kind: track.kind,
140
+ localParticipantId: this.localParticipant?.participantId
141
+ });
129
142
  if (this.localParticipant) {
130
143
  const isFirstProducer = this.localParticipant.producers.size === 0;
131
144
  this.localParticipant.producers.set(producer.id, producer);
@@ -397,8 +410,17 @@ class OdysseySpatialComms extends EventManager_1.EventManager {
397
410
  // CRITICAL: Do NOT setup spatial audio for local participant (yourself)
398
411
  // This prevents hearing your own microphone (loopback)
399
412
  const isLocalParticipant = participant.participantId === this.localParticipant?.participantId;
413
+ console.log("🔍 SDK: Checking if local participant:", {
414
+ participantId: participant.participantId,
415
+ localParticipantId: this.localParticipant?.participantId,
416
+ isLocalParticipant,
417
+ producerId: data.producerId,
418
+ trackKind: track.kind
419
+ });
400
420
  if (isLocalParticipant) {
401
- console.log("🔇 SDK: Skipping spatial audio setup for LOCAL participant (yourself) - prevents loopback", participant.participantId);
421
+ console.warn("🔇 SDK: SKIPPING spatial audio for LOCAL participant (yourself) - prevents loopback", participant.participantId);
422
+ // Do NOT connect this audio to Web Audio API
423
+ return; // Exit early to prevent any audio processing
402
424
  }
403
425
  else {
404
426
  console.log("🎧 SDK: Setting up spatial audio for REMOTE participant", participant.participantId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newgameplusinc/odyssey-audio-video-sdk-dev",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Odyssey Spatial Audio & Video SDK using MediaSoup for real-time communication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",