@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.js CHANGED
@@ -2412,16 +2412,34 @@ var MeetingProvider = ({
2412
2412
  /* @__PURE__ */ new Set()
2413
2413
  );
2414
2414
  if (!sdkRef.current) {
2415
- sdkRef.current = new VideoSDKCore({
2416
- participantId: config.participantId,
2417
- onError: (err) => errorListeners.current.forEach((fn) => fn(err)),
2418
- onEntryRequested: (req) => entryRequestListeners.current.forEach((fn) => fn(req)),
2419
- onEntryResponded: (p, d) => entryResponseListeners.current.forEach((fn) => fn(p, d)),
2420
- onMeetingLeft: () => meetingLeftListeners.current.forEach((fn) => fn()),
2421
- onTrackStateChanged: (track) => trackStateListeners.current.forEach((fn) => fn(track)),
2422
- onRecordingStarted: (recording) => recordingStartedListeners.current.forEach((fn) => fn(recording)),
2423
- onRecordingStopped: (recording) => recordingStoppedListeners.current.forEach((fn) => fn(recording))
2424
- });
2415
+ sdkRef.current = new VideoSDKCore(
2416
+ {
2417
+ participantId: config.participantId
2418
+ },
2419
+ {
2420
+ onError: (err) => {
2421
+ errorListeners.current.forEach((fn) => fn(err));
2422
+ },
2423
+ onEntryRequested: (req) => {
2424
+ entryRequestListeners.current.forEach((fn) => fn(req));
2425
+ },
2426
+ onEntryResponded: (p, d) => {
2427
+ entryResponseListeners.current.forEach((fn) => fn(p, d));
2428
+ },
2429
+ onMeetingLeft: () => {
2430
+ meetingLeftListeners.current.forEach((fn) => fn());
2431
+ },
2432
+ onTrackStateChanged: (track) => {
2433
+ trackStateListeners.current.forEach((fn) => fn(track));
2434
+ },
2435
+ onRecordingStarted: (recording) => {
2436
+ recordingStartedListeners.current.forEach((fn) => fn(recording));
2437
+ },
2438
+ onRecordingStopped: (recording) => {
2439
+ recordingStoppedListeners.current.forEach((fn) => fn(recording));
2440
+ }
2441
+ }
2442
+ );
2425
2443
  }
2426
2444
  const sdk = sdkRef.current;
2427
2445
  const activeSpeakerIds = useMeetingStore(