@videosdk.live/react-sdk 0.3.1 → 0.3.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.
@@ -235,8 +235,8 @@ export function MeetingConsumer({
235
235
  participantId: string;
236
236
  decision: string;
237
237
  }) => void;
238
- onPausedAllStreams?: ({ kind }: { kind: "audio" | "video" | "share" | "shareAudio" | "all" | undefined}) => void;
239
- onResumedAllStreams?: ({ kind }: { kind: "audio" | "video" | "share" | "shareAudio" | "all" | undefined}) => void;
238
+ onPausedAllStreams?: ({ kind }: { kind: "audio" | "video" | "share" | "shareAudio" | "all" | undefined }) => void;
239
+ onResumedAllStreams?: ({ kind }: { kind: "audio" | "video" | "share" | "shareAudio" | "all" | undefined }) => void;
240
240
  onRecordingStarted?: () => void;
241
241
  onRecordingStopped?: () => void;
242
242
  onChatMessage?: (data: {
@@ -522,6 +522,7 @@ export function useParticipant(
522
522
  stopConsumingMicStreams: () => void;
523
523
  stopConsumingWebcamStreams: () => void;
524
524
  setQuality: (quality: 'low' | 'med' | 'high') => void;
525
+ setScreenShareQuality: (quality: 'low' | 'med' | 'high') => void;
525
526
  setViewPort: (width: number, height: number) => void;
526
527
  enableMic: () => void;
527
528
  disableMic: () => void;
@@ -747,8 +748,8 @@ export function useMeeting({
747
748
  participantId: string;
748
749
  decision: string;
749
750
  }) => void;
750
- onPausedAllStreams?: ({ kind }: { kind: "audio" | "video" | "share" | "shareAudio" | "all" | undefined}) => void;
751
- onResumedAllStreams?: ({ kind }: { kind: "audio" | "video" | "share" | "shareAudio" | "all" | undefined}) => void;
751
+ onPausedAllStreams?: ({ kind }: { kind: "audio" | "video" | "share" | "shareAudio" | "all" | undefined }) => void;
752
+ onResumedAllStreams?: ({ kind }: { kind: "audio" | "video" | "share" | "shareAudio" | "all" | undefined }) => void;
752
753
  onRecordingStarted?: () => void;
753
754
  onRecordingStopped?: () => void;
754
755
  onChatMessage?: (data: {
@@ -1503,6 +1504,8 @@ export function createCameraVideoTrack({
1503
1504
  *
1504
1505
  * #### Values : `enable`, `disable`
1505
1506
  * ---
1507
+ * @param multiStream - It will specifiy if the stream should send multiple resolution layers or single resolution layer.
1508
+ * Please refere thi link for more understanding [What is multiStream ?](https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/render-media/optimize-video-track#what-is-multistream)
1506
1509
  *
1507
1510
  * **Code Example**
1508
1511
  * ```js
@@ -1512,23 +1515,30 @@ export function createCameraVideoTrack({
1512
1515
  * optimizationMode: "motion", // "text" | "detail", Default : "motion"
1513
1516
  * encoderConfig: "h720p_15fps", // `h360p_30fps` | `h1080p_30fps` // Default : `h720p_15fps`
1514
1517
  * withAudio:'enable' // `disable`, Default : `disable`
1518
+ * multiStream: true // false, Default : false
1519
+ *
1515
1520
  * });
1516
1521
  * ```
1517
1522
  */
1518
1523
  export function createScreenShareVideoTrack({
1519
1524
  encoderConfig,
1520
1525
  optimizationMode,
1521
- withAudio
1526
+ withAudio,
1527
+ multiStream,
1522
1528
  }: {
1523
1529
  encoderConfig?:
1524
- | 'h360p_30fps'
1525
- | 'h720p_5fps'
1526
- | 'h720p_15fps'
1527
- | 'h1080p_15fps'
1528
- | 'h1080p_30fps'
1530
+ | "h360p_30fps"
1531
+ | "h480p_15fps"
1532
+ | "h480p_30fps"
1533
+ | "h720p_5fps"
1534
+ | "h720p_15fps"
1535
+ | "h720p_30fps"
1536
+ | "h1080p_15fps"
1537
+ | "h1080p_30fps"
1529
1538
  | undefined;
1530
1539
  optimizationMode?: 'text' | 'motion' | 'detail' | undefined;
1531
1540
  withAudio?: 'enable' | 'disable';
1541
+ multiStream?: boolean;
1532
1542
  }): Promise<MediaStream>;
1533
1543
 
1534
1544
  /**
@@ -85,6 +85,11 @@ export class Participant {
85
85
  * @param quality
86
86
  */
87
87
  setQuality(quality: 'low' | 'med' | 'high'): void;
88
+ /**
89
+ * @description This method can be used to set the incoming screen sharevideo quality of the participant
90
+ * @param quality
91
+ */
92
+ setScreenShareQuality(quality: 'low' | 'med' | 'high'): void;
88
93
  /**
89
94
  * @description This method can be used to set the video quality of the participant based on the size of the viewport it is being displayed in
90
95
  * @param width Width of the Viewport in which participant video is shown
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@videosdk.live/react-sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
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.2.2",
77
+ "@videosdk.live/js-sdk": "0.2.4",
78
78
  "events": "^3.3.0"
79
79
  }
80
80
  }