genesys-cloud-streaming-client 19.2.3-develop.2 → 19.2.3-develop.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.
@@ -94,7 +94,8 @@ const upgradeMediaPresenceDefinition = {
94
94
  video: jxt_1.childAttribute(null, 'mediastream', 'video'),
95
95
  audio: jxt_1.childAttribute(null, 'mediastream', 'audio'),
96
96
  listener: jxt_1.childAttribute(null, 'mediastream', 'listener'),
97
- screenRecording: jxt_1.childAttribute(null, 'mediastream', 'screenRecording')
97
+ screenRecording: jxt_1.childAttribute(null, 'mediastream', 'screenRecording'),
98
+ videoGuest: jxt_1.childAttribute(null, 'mediastream', 'videoGuest')
98
99
  },
99
100
  namespace: 'orgspan:mediastream'
100
101
  };
@@ -17,6 +17,7 @@ export interface InitRtcSessionOptions {
17
17
  jid?: string;
18
18
  conversationId?: string;
19
19
  sourceCommunicationId?: string;
20
+ videoGuest?: boolean;
20
21
  }
21
22
  export declare class WebrtcExtension extends EventEmitter implements StreamingClientExtension {
22
23
  client: Client;
@@ -600,6 +600,13 @@ class WebrtcExtension extends events_1.EventEmitter {
600
600
  sourceCommunicationId: opts.sourceCommunicationId
601
601
  }
602
602
  };
603
+ if (opts.mediaPurpose === interfaces_1.SessionTypes.collaborateVideo) {
604
+ Object.assign(mediaPresence.media, {
605
+ video: true,
606
+ audio: true,
607
+ videoGuest: true
608
+ });
609
+ }
603
610
  // TODO? can't set last-n on parent element because it invalidates presence root schema
604
611
  for (const mediaDescription of mediaDescriptions) {
605
612
  mediaPresence.media[mediaDescription.media] = true;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "19.2.3-develop",
3
- "build": "2",
4
- "buildDate": "2025-07-11T19:07:41.993Z",
3
+ "build": "3",
4
+ "buildDate": "2025-07-14T17:57:33.141Z",
5
5
  "indexFiles": [
6
6
  {
7
7
  "file": "v19.2.3/streaming-client.browser.js"
@@ -21401,7 +21401,8 @@ const upgradeMediaPresenceDefinition = {
21401
21401
  video: jxt.childAttribute(null, 'mediastream', 'video'),
21402
21402
  audio: jxt.childAttribute(null, 'mediastream', 'audio'),
21403
21403
  listener: jxt.childAttribute(null, 'mediastream', 'listener'),
21404
- screenRecording: jxt.childAttribute(null, 'mediastream', 'screenRecording')
21404
+ screenRecording: jxt.childAttribute(null, 'mediastream', 'screenRecording'),
21405
+ videoGuest: jxt.childAttribute(null, 'mediastream', 'videoGuest')
21405
21406
  },
21406
21407
  namespace: 'orgspan:mediastream'
21407
21408
  };
@@ -32546,6 +32547,13 @@ class WebrtcExtension extends EventEmitter {
32546
32547
  sourceCommunicationId: opts.sourceCommunicationId
32547
32548
  }
32548
32549
  };
32550
+ if (opts.mediaPurpose === SessionTypes.collaborateVideo) {
32551
+ Object.assign(mediaPresence.media, {
32552
+ video: true,
32553
+ audio: true,
32554
+ videoGuest: true
32555
+ });
32556
+ }
32549
32557
  // TODO? can't set last-n on parent element because it invalidates presence root schema
32550
32558
  for (const mediaDescription of mediaDescriptions) {
32551
32559
  mediaPresence.media[mediaDescription.media] = true;
@@ -91,7 +91,8 @@ const upgradeMediaPresenceDefinition = {
91
91
  video: childAttribute(null, 'mediastream', 'video'),
92
92
  audio: childAttribute(null, 'mediastream', 'audio'),
93
93
  listener: childAttribute(null, 'mediastream', 'listener'),
94
- screenRecording: childAttribute(null, 'mediastream', 'screenRecording')
94
+ screenRecording: childAttribute(null, 'mediastream', 'screenRecording'),
95
+ videoGuest: childAttribute(null, 'mediastream', 'videoGuest')
95
96
  },
96
97
  namespace: 'orgspan:mediastream'
97
98
  };
@@ -17,6 +17,7 @@ export interface InitRtcSessionOptions {
17
17
  jid?: string;
18
18
  conversationId?: string;
19
19
  sourceCommunicationId?: string;
20
+ videoGuest?: boolean;
20
21
  }
21
22
  export declare class WebrtcExtension extends EventEmitter implements StreamingClientExtension {
22
23
  client: Client;
package/dist/es/webrtc.js CHANGED
@@ -604,6 +604,13 @@ export class WebrtcExtension extends EventEmitter {
604
604
  sourceCommunicationId: opts.sourceCommunicationId
605
605
  }
606
606
  };
607
+ if (opts.mediaPurpose === SessionTypes.collaborateVideo) {
608
+ Object.assign(mediaPresence.media, {
609
+ video: true,
610
+ audio: true,
611
+ videoGuest: true
612
+ });
613
+ }
607
614
  // TODO? can't set last-n on parent element because it invalidates presence root schema
608
615
  for (const mediaDescription of mediaDescriptions) {
609
616
  mediaPresence.media[mediaDescription.media] = true;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "19.2.3-develop",
3
- "build": "2",
4
- "buildDate": "2025-07-11T19:07:41.993Z",
3
+ "build": "3",
4
+ "buildDate": "2025-07-14T17:57:33.141Z",
5
5
  "indexFiles": [
6
6
  {
7
7
  "file": "v19.2.3/streaming-client.browser.js"
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
  ### Changed
9
9
  * [STREAM-631](https://inindca.atlassian.net/browse/STREAM-631) - Remove pipeline infra from open-source.
10
10
 
11
+ ### Added
12
+ * [STREAM-653](https://inindca.atlassian.net/browse/STREAM-653) - Added fields to upgradeMediaPresence stanza definition.
13
+
11
14
  # [v19.2.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.2.1...v19.2.2)
12
15
  ### Fixed
13
16
  * [STREAM-262](https://inindca.atlassian.net/browse/STREAM-262) - Set the state of a GenesysCloudMediaSession to `ended` when a `terminate` is received (or we determine a hard closure of the PeerConnection is needed)
@@ -94,7 +94,8 @@ const upgradeMediaPresenceDefinition = {
94
94
  video: jxt_1.childAttribute(null, 'mediastream', 'video'),
95
95
  audio: jxt_1.childAttribute(null, 'mediastream', 'audio'),
96
96
  listener: jxt_1.childAttribute(null, 'mediastream', 'listener'),
97
- screenRecording: jxt_1.childAttribute(null, 'mediastream', 'screenRecording')
97
+ screenRecording: jxt_1.childAttribute(null, 'mediastream', 'screenRecording'),
98
+ videoGuest: jxt_1.childAttribute(null, 'mediastream', 'videoGuest')
98
99
  },
99
100
  namespace: 'orgspan:mediastream'
100
101
  };
@@ -17,6 +17,7 @@ export interface InitRtcSessionOptions {
17
17
  jid?: string;
18
18
  conversationId?: string;
19
19
  sourceCommunicationId?: string;
20
+ videoGuest?: boolean;
20
21
  }
21
22
  export declare class WebrtcExtension extends EventEmitter implements StreamingClientExtension {
22
23
  client: Client;
@@ -600,6 +600,13 @@ class WebrtcExtension extends events_1.EventEmitter {
600
600
  sourceCommunicationId: opts.sourceCommunicationId
601
601
  }
602
602
  };
603
+ if (opts.mediaPurpose === interfaces_1.SessionTypes.collaborateVideo) {
604
+ Object.assign(mediaPresence.media, {
605
+ video: true,
606
+ audio: true,
607
+ videoGuest: true
608
+ });
609
+ }
603
610
  // TODO? can't set last-n on parent element because it invalidates presence root schema
604
611
  for (const mediaDescription of mediaDescriptions) {
605
612
  mediaPresence.media[mediaDescription.media] = true;