@defcomm/meetingsdk 0.1.6 → 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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +28 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -429,7 +429,7 @@ type PubSubHandle = {
|
|
|
429
429
|
};
|
|
430
430
|
type MeetingContextValue = {
|
|
431
431
|
sdk: VideoSDKCore;
|
|
432
|
-
join: (config?: MeetingConfig) => Promise<void>;
|
|
432
|
+
join: (config?: Omit<MeetingConfig, "participantId">) => Promise<void>;
|
|
433
433
|
leave: () => void;
|
|
434
434
|
createRoom: (input: {
|
|
435
435
|
name: string;
|
|
@@ -484,7 +484,7 @@ declare const useMeeting: (handlers?: {
|
|
|
484
484
|
onRecordingStopped?: (recording: any) => void;
|
|
485
485
|
onActiveSpeakersChanged?: (participantIds: string[]) => void;
|
|
486
486
|
}) => {
|
|
487
|
-
join: (config?: MeetingConfig) => Promise<void>;
|
|
487
|
+
join: (config?: Omit<MeetingConfig, "participantId">) => Promise<void>;
|
|
488
488
|
leave: () => void;
|
|
489
489
|
createRoom: (input: {
|
|
490
490
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -429,7 +429,7 @@ type PubSubHandle = {
|
|
|
429
429
|
};
|
|
430
430
|
type MeetingContextValue = {
|
|
431
431
|
sdk: VideoSDKCore;
|
|
432
|
-
join: (config?: MeetingConfig) => Promise<void>;
|
|
432
|
+
join: (config?: Omit<MeetingConfig, "participantId">) => Promise<void>;
|
|
433
433
|
leave: () => void;
|
|
434
434
|
createRoom: (input: {
|
|
435
435
|
name: string;
|
|
@@ -484,7 +484,7 @@ declare const useMeeting: (handlers?: {
|
|
|
484
484
|
onRecordingStopped?: (recording: any) => void;
|
|
485
485
|
onActiveSpeakersChanged?: (participantIds: string[]) => void;
|
|
486
486
|
}) => {
|
|
487
|
-
join: (config?: MeetingConfig) => Promise<void>;
|
|
487
|
+
join: (config?: Omit<MeetingConfig, "participantId">) => Promise<void>;
|
|
488
488
|
leave: () => void;
|
|
489
489
|
createRoom: (input: {
|
|
490
490
|
name: string;
|
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
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
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(
|