@videosdk.live/react-sdk 0.2.2 → 0.3.0

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.
@@ -140,6 +140,10 @@ export function MeetingProvider({
140
140
  * ---
141
141
  * @param onMeetingLeft - This event callback is trigger when local participant leaves the meeting.
142
142
  * ---
143
+ * @param onPausedAllStreams - This event will be emitted when all the consumer streams are paused succesfully.
144
+ * ---
145
+ * @param onResumedAllStreams - This event will be emitted when all the consumer streams are resumed succesfully.
146
+ * ---
143
147
  * @param onRecordingStateChanged - This event will be emitted when the meeting's recording status changed.
144
148
  * ---
145
149
  * @param onLivestreamStateChanged - This event will be emitted when the meeting's livestream status changed.
@@ -181,6 +185,8 @@ export function MeetingConsumer({
181
185
  onMainParticipantChanged,
182
186
  onEntryRequested,
183
187
  onEntryResponded,
188
+ onPausedAllStreams,
189
+ onResumedAllStreams,
184
190
  onRecordingStarted,
185
191
  onRecordingStopped,
186
192
  onChatMessage,
@@ -229,6 +235,8 @@ export function MeetingConsumer({
229
235
  participantId: string;
230
236
  decision: string;
231
237
  }) => void;
238
+ onPausedAllStreams?: ({ kind }: { kind: "audio" | "video" | "share" | "shareAudio" | "all" | undefined}) => void;
239
+ onResumedAllStreams?: ({ kind }: { kind: "audio" | "video" | "share" | "shareAudio" | "all" | undefined}) => void;
232
240
  onRecordingStarted?: () => void;
233
241
  onRecordingStopped?: () => void;
234
242
  onChatMessage?: (data: {
@@ -641,6 +649,10 @@ export function useParticipant(
641
649
  * ---
642
650
  * @param onMeetingLeft - This event callback is trigger when local participant leaves the meeting.
643
651
  * ---
652
+ * @param onPausedAllStreams - This event will be emitted when all the consumer streams are paused succesfully.
653
+ * ---
654
+ * @param onResumedAllStreams - This event will be emitted when all the consumer streams are resumed succesfully.
655
+ * ---
644
656
  * @param onRecordingStateChanged - This event will be emitted when the meeting's recording status changed.
645
657
  * ---
646
658
  * @param onLivestreamStateChanged - This event will be emitted when the meeting's livestream status changed.
@@ -684,6 +696,8 @@ export function useMeeting({
684
696
  onMainParticipantChanged,
685
697
  onEntryRequested,
686
698
  onEntryResponded,
699
+ onPausedAllStreams,
700
+ onResumedAllStreams,
687
701
  onRecordingStarted,
688
702
  onRecordingStopped,
689
703
  onChatMessage,
@@ -733,6 +747,8 @@ export function useMeeting({
733
747
  participantId: string;
734
748
  decision: string;
735
749
  }) => void;
750
+ onPausedAllStreams?: ({ kind }: { kind: "audio" | "video" | "share" | "shareAudio" | "all" | undefined}) => void;
751
+ onResumedAllStreams?: ({ kind }: { kind: "audio" | "video" | "share" | "shareAudio" | "all" | undefined}) => void;
736
752
  onRecordingStarted?: () => void;
737
753
  onRecordingStopped?: () => void;
738
754
  onChatMessage?: (data: {
@@ -888,6 +904,8 @@ export function useMeeting({
888
904
  enableScreenShare: (customScreenShareTrack?: MediaStream | undefined) => void;
889
905
  disableScreenShare: () => void;
890
906
  toggleScreenShare: (customScreenShareTrack?: MediaStream | undefined) => void;
907
+ pauseAllStreams: (kind?: "audio" | "video" | "share" | "shareAudio" | "all" | undefined) => void;
908
+ resumeAllStreams: (kind?: "audio" | "video" | "share" | "shareAudio" | "all" | undefined) => void;
891
909
  startRecording: (
892
910
  webhookUrl?: string,
893
911
  awsDirPath?: string,
@@ -155,6 +155,22 @@ export class Meeting {
155
155
  */
156
156
  sendChatMessage(text: string): void;
157
157
 
158
+ /**
159
+ * @param kind
160
+ * Kind of stream that will be paused
161
+ */
162
+ pauseAllStreams(
163
+ kind?: "audio" | "video" | "share" | "shareAudio" | "all"
164
+ ): void;
165
+
166
+ /**
167
+ * @param kind
168
+ * Kind of stream that will be resumed
169
+ */
170
+ resumeAllStreams(
171
+ kind?: "audio" | "video" | "share" | "shareAudio" | "all"
172
+ ): void;
173
+
158
174
  /**
159
175
  * @param webhookUrl
160
176
  * Webhook URL which will be called by VideoSDK when the recording state gets changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@videosdk.live/react-sdk",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
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.1.6",
77
+ "@videosdk.live/js-sdk": "0.2.1",
78
78
  "events": "^3.3.0"
79
79
  }
80
80
  }