@newgameplusinc/odyssey-audio-video-sdk-dev 1.0.39 → 1.0.40

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 +7 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -435,6 +435,13 @@ class OdysseySpatialComms extends EventManager_1.EventManager {
435
435
  const participant = this.room?.participants.get(data.participantId);
436
436
  if (participant) {
437
437
  participant.currentChannel = data.channelId;
438
+ // If this participant is now in a different channel from us, clear their screenshare
439
+ const myChannel = this.localParticipant?.currentChannel || "spatial";
440
+ const theirChannel = data.channelId || "spatial";
441
+ if (myChannel !== theirChannel) {
442
+ // Clear screenshare track when they switch to different channel
443
+ participant.screenshareTrack = null;
444
+ }
438
445
  }
439
446
  // Update local participant if it's them
440
447
  if (this.localParticipant?.participantId === data.participantId && this.localParticipant !== null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newgameplusinc/odyssey-audio-video-sdk-dev",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
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",