diff --git a/samples/active-speaker-ui/src/components/Grid.tsx b/samples/active-speaker-ui/src/components/Grid.tsx index a5a5ea9..599c862 100644 --- a/samples/active-speaker-ui/src/components/Grid.tsx +++ b/samples/active-speaker-ui/src/components/Grid.tsx @@ -14,7 +14,7 @@ export default function Grid() { const isPinned = useRealtimeKitSelector((m) => m.self.isPinned); const activeParticipants = useRealtimeKitSelector((m) => - m.participants.active.toArray() + m.participants.videoSubscribed.toArray() ); const participants = diff --git a/samples/active-speaker-ui/src/components/MainArea.tsx b/samples/active-speaker-ui/src/components/MainArea.tsx index 3e89bd9..a8a4eed 100644 --- a/samples/active-speaker-ui/src/components/MainArea.tsx +++ b/samples/active-speaker-ui/src/components/MainArea.tsx @@ -266,7 +266,7 @@ export default function MainArea() { const stageStatus = useRealtimeKitSelector((m) => m.stage.status); const activeParticipants = useRealtimeKitSelector((m) => - m.participants.active.toArray() + m.participants.videoSubscribed.toArray() ); const participants = diff --git a/samples/active-speaker-ui/src/lib/useActiveSpeaker.ts b/samples/active-speaker-ui/src/lib/useActiveSpeaker.ts index fb44daa..776b5d4 100644 --- a/samples/active-speaker-ui/src/lib/useActiveSpeaker.ts +++ b/samples/active-speaker-ui/src/lib/useActiveSpeaker.ts @@ -13,7 +13,7 @@ export function useActiveSpeaker() { ); const activeParticipants = useRealtimeKitSelector((m) => - m.participants.active.toArray() + m.participants.videoSubscribed.toArray() ); if (isPinned) { diff --git a/samples/async-video-survey/src/App.tsx b/samples/async-video-survey/src/App.tsx index c305dfb..22d2b95 100644 --- a/samples/async-video-survey/src/App.tsx +++ b/samples/async-video-survey/src/App.tsx @@ -302,7 +302,7 @@ export default function App() { }).then((meeting) => { Object.assign(window, { meeting }); // automatically join room - meeting?.joinRoom(); + meeting?.join(); }); }, []); diff --git a/samples/audio-room/src/components/AudioRoom.tsx b/samples/audio-room/src/components/AudioRoom.tsx index b079187..162879b 100644 --- a/samples/audio-room/src/components/AudioRoom.tsx +++ b/samples/audio-room/src/components/AudioRoom.tsx @@ -29,7 +29,7 @@ export default function AudioRoom() {

By default you will join with your mic disabled.

meeting.joinRoom()} + onClick={() => meeting.join()} kind="wide" className="max-w-sm" > diff --git a/samples/audio-room/src/components/Stage.tsx b/samples/audio-room/src/components/Stage.tsx index f76ecde..4284e80 100644 --- a/samples/audio-room/src/components/Stage.tsx +++ b/samples/audio-room/src/components/Stage.tsx @@ -5,7 +5,7 @@ import clsx from 'clsx'; export default function Stage() { const { meeting } = useRealtimeKitMeeting(); const activeParticipants = useRealtimeKitSelector((meeting) => - meeting.participants.active.toArray() + meeting.participants.videoSubscribed.toArray() ); const joinedParticipants = useRealtimeKitSelector((meeting) => diff --git a/samples/chat-widget/src/components/ChatPopup.tsx b/samples/chat-widget/src/components/ChatPopup.tsx index 4b49728..d602ecb 100644 --- a/samples/chat-widget/src/components/ChatPopup.tsx +++ b/samples/chat-widget/src/components/ChatPopup.tsx @@ -13,7 +13,7 @@ const ChatPopup = ({ meeting }: { meeting: RtkMeeting }) => { if (channel) return; const createChannel = async () => { if (!meeting.self.roomJoined) { - await meeting.joinRoom(); + await meeting.join(); } const memberIds = meeting.participants.all.toArray().map((p) => p.userId); const createdChannel = await meeting.chat.createChannel(meeting.meta.meetingTitle, memberIds); diff --git a/samples/clubhouse/src/App.tsx b/samples/clubhouse/src/App.tsx index 0d53237..7b76620 100644 --- a/samples/clubhouse/src/App.tsx +++ b/samples/clubhouse/src/App.tsx @@ -32,7 +32,7 @@ function App() { Object.assign(window, { meeting: m }); if (!window.location.search.includes('showSetupScreen')) { - m?.joinRoom(); + m?.join(); } }); }, []); diff --git a/samples/clubhouse/src/components/Meeting.tsx b/samples/clubhouse/src/components/Meeting.tsx index 22b2012..f7a03aa 100644 --- a/samples/clubhouse/src/components/Meeting.tsx +++ b/samples/clubhouse/src/components/Meeting.tsx @@ -81,7 +81,7 @@ export default function Meeting() {
- {meeting.self.permissions.acceptPresentRequests && ( + {meeting.self.permissions.acceptStageRequests && (