@defcomm/meetingsdk 0.1.7 → 0.1.8

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.mjs CHANGED
@@ -2376,16 +2376,34 @@ var MeetingProvider = ({
2376
2376
  /* @__PURE__ */ new Set()
2377
2377
  );
2378
2378
  if (!sdkRef.current) {
2379
- sdkRef.current = new VideoSDKCore({
2380
- participantId: config.participantId,
2381
- onError: (err) => errorListeners.current.forEach((fn) => fn(err)),
2382
- onEntryRequested: (req) => entryRequestListeners.current.forEach((fn) => fn(req)),
2383
- onEntryResponded: (p, d) => entryResponseListeners.current.forEach((fn) => fn(p, d)),
2384
- onMeetingLeft: () => meetingLeftListeners.current.forEach((fn) => fn()),
2385
- onTrackStateChanged: (track) => trackStateListeners.current.forEach((fn) => fn(track)),
2386
- onRecordingStarted: (recording) => recordingStartedListeners.current.forEach((fn) => fn(recording)),
2387
- onRecordingStopped: (recording) => recordingStoppedListeners.current.forEach((fn) => fn(recording))
2388
- });
2379
+ sdkRef.current = new VideoSDKCore(
2380
+ {
2381
+ participantId: config.participantId
2382
+ },
2383
+ {
2384
+ onError: (err) => {
2385
+ errorListeners.current.forEach((fn) => fn(err));
2386
+ },
2387
+ onEntryRequested: (req) => {
2388
+ entryRequestListeners.current.forEach((fn) => fn(req));
2389
+ },
2390
+ onEntryResponded: (p, d) => {
2391
+ entryResponseListeners.current.forEach((fn) => fn(p, d));
2392
+ },
2393
+ onMeetingLeft: () => {
2394
+ meetingLeftListeners.current.forEach((fn) => fn());
2395
+ },
2396
+ onTrackStateChanged: (track) => {
2397
+ trackStateListeners.current.forEach((fn) => fn(track));
2398
+ },
2399
+ onRecordingStarted: (recording) => {
2400
+ recordingStartedListeners.current.forEach((fn) => fn(recording));
2401
+ },
2402
+ onRecordingStopped: (recording) => {
2403
+ recordingStoppedListeners.current.forEach((fn) => fn(recording));
2404
+ }
2405
+ }
2406
+ );
2389
2407
  }
2390
2408
  const sdk = sdkRef.current;
2391
2409
  const activeSpeakerIds = useMeetingStore(