@newgameplusinc/odyssey-audio-video-sdk-dev 1.0.2 → 1.0.3

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.d.ts CHANGED
@@ -30,6 +30,10 @@ export declare class OdysseySpatialComms extends EventManager {
30
30
  produceTrack(track: MediaStreamTrack): Promise<any>;
31
31
  updatePosition(position: Position, direction: Direction, spatialData?: {
32
32
  cameraDistance?: number;
33
+ screenPos?: {
34
+ x: number;
35
+ y: number;
36
+ } | null;
33
37
  }): void;
34
38
  updateMediaState(mediaState: MediaState): void;
35
39
  setListenerPosition(position: Position, orientation: {
package/dist/index.js CHANGED
@@ -159,12 +159,14 @@ class OdysseySpatialComms extends EventManager_1.EventManager {
159
159
  position,
160
160
  direction,
161
161
  cameraDistance: spatialData?.cameraDistance,
162
+ screenPos: spatialData?.screenPos,
162
163
  };
163
164
  console.log("📤 [SDK → SERVER] Sending position update:", {
164
165
  participantId: this.localParticipant.participantId,
165
166
  position,
166
167
  direction,
167
168
  cameraDistance: spatialData?.cameraDistance,
169
+ screenPos: spatialData?.screenPos,
168
170
  });
169
171
  this.socket.emit("update-position", updateData);
170
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newgameplusinc/odyssey-audio-video-sdk-dev",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
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",