@defcomm/meetingsdk 0.3.4 → 0.3.6

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 CHANGED
@@ -102,7 +102,9 @@ type RecordingInfo = {
102
102
  recording_id: string;
103
103
  started_at?: string;
104
104
  stopped_at?: string;
105
+ status?: string;
105
106
  active?: boolean;
107
+ late_join?: boolean;
106
108
  };
107
109
  type StateScope = "participants" | "localParticipant" | "chat" | "presenter" | "activeSpeakers" | `participant:${string}`;
108
110
  type SDKError = {
package/dist/index.d.ts CHANGED
@@ -102,7 +102,9 @@ type RecordingInfo = {
102
102
  recording_id: string;
103
103
  started_at?: string;
104
104
  stopped_at?: string;
105
+ status?: string;
105
106
  active?: boolean;
107
+ late_join?: boolean;
106
108
  };
107
109
  type StateScope = "participants" | "localParticipant" | "chat" | "presenter" | "activeSpeakers" | `participant:${string}`;
108
110
  type SDKError = {
package/dist/index.js CHANGED
@@ -1082,6 +1082,12 @@ var SFUClient = class {
1082
1082
  await this.initializePeerConnections();
1083
1083
  this.setState("connected");
1084
1084
  this.onConnected(payload, resumed);
1085
+ if (payload.recording?.active || payload.recording?.status === "recording") {
1086
+ this.onRecordingStarted({
1087
+ recording_id: payload.recording.recording_id,
1088
+ started_at: payload.recording.started_at
1089
+ });
1090
+ }
1085
1091
  for (const participant of this.participants.values()) {
1086
1092
  if (participant.participant_id !== this.currentParticipantId) {
1087
1093
  this.onParticipantJoined(participant);