@videosdk.live/react-sdk 0.6.4 → 0.6.6

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.
@@ -416,7 +416,7 @@ export function useMediaDevice({
416
416
  * });
417
417
  * ```
418
418
  * ---
419
- * @param onMediaStatusChanged - It's a callback which gets triggered whenever a participant's video or audio is disabled or enabled.
419
+ * @param onMediaStatusChanged - It's a callback which gets triggered whenever a participant's video, audio, screenshare or screenshare audio is disabled or enabled.
420
420
  *
421
421
  * **Code Example :**
422
422
  * ```js
@@ -491,7 +491,7 @@ export function useParticipant(
491
491
  peerId,
492
492
  newStatus
493
493
  }: {
494
- kind: 'audio' | 'video';
494
+ kind: 'audio' | 'video' | 'share' | 'shareAudio';
495
495
  peerId: string;
496
496
  newStatus: boolean;
497
497
  }) => void;
@@ -529,6 +529,7 @@ export function useParticipant(
529
529
  webcamOn: boolean;
530
530
  micOn: boolean;
531
531
  screenShareOn: boolean;
532
+ screenShareAudioOn: boolean;
532
533
  isLocal: boolean;
533
534
  isActiveSpeaker: boolean;
534
535
  isMainParticipant: boolean;
@@ -39,6 +39,16 @@ export class Participant {
39
39
  *
40
40
  */
41
41
  micOn: boolean;
42
+ /**
43
+ * @description This represents participant's current screenshare status
44
+ *
45
+ */
46
+ screenShareOn: boolean;
47
+ /**
48
+ * @description This represents participant's current screenshare audio status
49
+ *
50
+ */
51
+ screenShareAudioOn: boolean;
42
52
  /**
43
53
  * @description This represents participant's current mode
44
54
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@videosdk.live/react-sdk",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.modern.js",
@@ -74,7 +74,7 @@
74
74
  }
75
75
  },
76
76
  "dependencies": {
77
- "@videosdk.live/js-sdk": "0.5.3",
77
+ "@videosdk.live/js-sdk": "0.5.5",
78
78
  "events": "^3.3.0"
79
79
  }
80
80
  }