@videosdk.live/react-sdk 0.6.5 → 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.
- package/dist/index.js +22 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +22 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/participant.d.ts +10 -0
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
77
|
+
"@videosdk.live/js-sdk": "0.5.5",
|
|
78
78
|
"events": "^3.3.0"
|
|
79
79
|
}
|
|
80
80
|
}
|