@naviedu/room-platform-react 0.0.34 → 0.0.36

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/README.md CHANGED
@@ -97,6 +97,9 @@ stage keeps its waiting state and never promotes a student camera. The local
97
97
  sidebar preview is hidden only when that selected moderator camera is local;
98
98
  its existing desktop breakpoint remains unchanged.
99
99
 
100
+ The public room keeps one canonical local camera track. It may be preview-only
101
+ before publication, and preview visibility never grants `media:publish_video`.
102
+
100
103
  ### Error and lifecycle callbacks
101
104
 
102
105
  ```tsx
package/index.d.ts CHANGED
@@ -72,6 +72,7 @@ declare interface RoomControlState {
72
72
  mode: string;
73
73
  raisedHandParticipantIdentities: string[];
74
74
  activeSpeakerParticipantIdentity?: string;
75
+ activeSpeakerTurnId?: string;
75
76
  monitorActive: boolean;
76
77
  monitorViewerCount: number;
77
78
  }
@@ -259,7 +260,6 @@ declare type RoomPlatformContextValue = {
259
260
  isActionPending: (name: RoomPlatformActionName, payload?: Record<string, string>) => boolean;
260
261
  isLocalMediaPending: (kind: RoomPlatformLocalMediaKind) => boolean;
261
262
  localCameraTrack: LocalVideoTrack | null;
262
- localPreviewTrack: LocalVideoTrack | null;
263
263
  localMedia: RoomPlatformLocalMediaState;
264
264
  performAction: (name: RoomPlatformActionName, payload?: Record<string, string>) => Promise<void>;
265
265
  room: Room | null;
@@ -397,9 +397,9 @@ export declare type RoomPlatformLocalMediaKind = 'microphone' | 'camera' | 'scre
397
397
 
398
398
  declare type RoomPlatformLocalMediaState = Record<RoomPlatformLocalMediaKind, boolean>;
399
399
 
400
- export declare function RoomPlatformLocalPreview({ trackRef, localPreviewTrack, }: {
400
+ export declare function RoomPlatformLocalPreview({ trackRef, localTrack, }: {
401
401
  trackRef?: TrackReference;
402
- localPreviewTrack?: LocalVideoTrack | null;
402
+ localTrack?: LocalVideoTrack | null;
403
403
  }): JSX.Element;
404
404
 
405
405
  export declare function RoomPlatformMediaRuntime({ children }: PropsWithChildren): JSX.Element;