@newgameplusinc/odyssey-audio-video-sdk-dev 1.0.260 → 1.0.261

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.
@@ -66,12 +66,31 @@ class MediasoupManager {
66
66
  }
67
67
  async createSendTransport(participantId) {
68
68
  const params = await this.createWebRtcTransport('send', participantId);
69
- this.sendTransport = this.device.createSendTransport(params);
69
+ // Extract iceServers from params and pass them correctly
70
+ const { iceServers, ...transportParams } = params;
71
+ console.log(`🎧 [MediasoupManager] Creating send transport with ICE servers:`, {
72
+ hasIceServers: !!iceServers,
73
+ iceServerCount: iceServers?.length || 0,
74
+ });
75
+ this.sendTransport = this.device.createSendTransport({
76
+ ...transportParams,
77
+ iceServers: iceServers || [],
78
+ });
70
79
  this.connectSendTransport();
71
80
  }
72
81
  async createRecvTransport(participantId) {
73
82
  const params = await this.createWebRtcTransport('recv', participantId);
74
- this.recvTransport = this.device.createRecvTransport(params);
83
+ // Extract iceServers from params and pass them correctly
84
+ const { iceServers, ...transportParams } = params;
85
+ console.log(`🎧 [MediasoupManager] Creating recv transport with ICE servers:`, {
86
+ hasIceServers: !!iceServers,
87
+ iceServerCount: iceServers?.length || 0,
88
+ iceServers: iceServers,
89
+ });
90
+ this.recvTransport = this.device.createRecvTransport({
91
+ ...transportParams,
92
+ iceServers: iceServers || [],
93
+ });
75
94
  this.connectRecvTransport();
76
95
  }
77
96
  connectSendTransport() {
@@ -127,6 +146,13 @@ class MediasoupManager {
127
146
  if (state === 'failed' || state === 'closed') {
128
147
  console.error(`🎧 [MediasoupManager] ❌ Recv transport ${state}`);
129
148
  }
149
+ if (state === 'connected') {
150
+ console.log(`🎧 [MediasoupManager] ✅ Recv transport fully connected!`);
151
+ }
152
+ });
153
+ // Also monitor ICE state separately
154
+ this.recvTransport?.on('icegatheringstatechange', (state) => {
155
+ console.log(`🎧 [MediasoupManager] Recv transport ICE gathering state: ${state}`);
130
156
  });
131
157
  }
132
158
  async produce(track, appData) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newgameplusinc/odyssey-audio-video-sdk-dev",
3
- "version": "1.0.260",
3
+ "version": "1.0.261",
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",