Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/active-speaker-ui/src/components/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion samples/active-speaker-ui/src/components/MainArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion samples/active-speaker-ui/src/lib/useActiveSpeaker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function useActiveSpeaker() {
);

const activeParticipants = useRealtimeKitSelector((m) =>
m.participants.active.toArray()
m.participants.videoSubscribed.toArray()
);

if (isPinned) {
Expand Down
2 changes: 1 addition & 1 deletion samples/async-video-survey/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export default function App() {
}).then((meeting) => {
Object.assign(window, { meeting });
// automatically join room
meeting?.joinRoom();
meeting?.join();
});
}, []);

Expand Down
2 changes: 1 addition & 1 deletion samples/audio-room/src/components/AudioRoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function AudioRoom() {
<p>By default you will join with your mic disabled.</p>
<RtkButton
size="lg"
onClick={() => meeting.joinRoom()}
onClick={() => meeting.join()}
kind="wide"
className="max-w-sm"
>
Expand Down
2 changes: 1 addition & 1 deletion samples/audio-room/src/components/Stage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down
2 changes: 1 addition & 1 deletion samples/chat-widget/src/components/ChatPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion samples/clubhouse/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function App() {
Object.assign(window, { meeting: m });

if (!window.location.search.includes('showSetupScreen')) {
m?.joinRoom();
m?.join();
}
});
}, []);
Expand Down
4 changes: 2 additions & 2 deletions samples/clubhouse/src/components/Meeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ export default function Meeting() {
<div className="flex items-center gap-2">
<button
className="icon-btn text-red-500"
onClick={() => meeting.leaveRoom()}
onClick={() => meeting.leave()}
>
<XSquare />
Leave
</button>
</div>

<div className="flex items-center gap-2">
{meeting.self.permissions.acceptPresentRequests && (
{meeting.self.permissions.acceptStageRequests && (
<button
className="icon-btn"
onClick={() => setShowRequests((r) => !r)}
Expand Down
2 changes: 1 addition & 1 deletion samples/clubhouse/src/components/Requests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Requests() {
(p) => p.stageStatus === 'REQUESTED_TO_JOIN_STAGE'
);

if (!meeting.self.permissions.acceptPresentRequests) {
if (!meeting.self.permissions.acceptStageRequests) {
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion samples/facetime/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function App() {
video: false,
audio: false,
},
}).then((m) => m?.joinRoom());
}).then((m) => m?.join());
}, []);

Object.assign(window, { meeting });
Expand Down
4 changes: 2 additions & 2 deletions samples/facetime/src/components/Facetime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Mic, Video, X } from 'react-feather';

function Grid() {
const { meeting } = useRealtimeKitMeeting();
const participants = useRealtimeKitSelector((m) => m.participants.active);
const participants = useRealtimeKitSelector((m) => m.participants.videoSubscribed);

return (
<div className="relative flex place-items-center justify-center flex-1 overflow-hidden -m-4">
Expand Down Expand Up @@ -61,7 +61,7 @@ function Controlbar() {
};

const leaveMeeting = () => {
meeting.leaveRoom();
meeting.leave();
};

return (
Expand Down
6 changes: 3 additions & 3 deletions samples/live-auction/src/pages/meeting/Meeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ const Meeting = () => {
}
}

document.body.addEventListener('dyteStateUpdate', handleDyteStateUpdate);
document.body.addEventListener('rtkStateUpdate', handleDyteStateUpdate);

return () => {
document.body.removeEventListener('dyteStateUpdate', handleDyteStateUpdate);
document.body.removeEventListener('rtkStateUpdate', handleDyteStateUpdate);
meeting.participants.removeListener('broadcastedMessage', handleBroadcastedMessage);
}
};
}, [meeting])

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion samples/live-auction/src/pages/setupScreen/SetupScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const SetupScreen = () => {

const joinMeeting = () => {
meeting?.self.setName(name);
meeting.joinRoom();
meeting.join();
}

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function CustomDyteGridScreenshareFocused({
const [reactions, setReactions] = useState<{[key: string]: string}>({});

const activeParticipants = useRealtimeKitSelector((meeting) =>
meeting.participants.active.toArray()
meeting.participants.videoSubscribed.toArray()
);

const pinnedParticipants = useRealtimeKitSelector((meeting) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function InMeeting({
<div
className="flex flex-col w-full h-full"
ref={(el) => {
el?.addEventListener('dyteStateUpdate', (e) => {
el?.addEventListener('rtkStateUpdate', (e) => {
const { detail: newStateUpdate } = e as unknown as { detail: CustomStates };
console.log('dyteStateUpdateSetup:: ', newStateUpdate);
setStates((oldState: CustomStates) => { return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function SetupScreenPreBuilt({
backgroundColor: '#272727',
color: '#ffffff',
}} ref={(el) => {
el?.addEventListener('dyteStateUpdate', (e) => {
el?.addEventListener('rtkStateUpdate', (e) => {
const { detail: newStateUpdate } = e as unknown as { detail: CustomStates };
console.log('dyteStateUpdateSetup:: ', newStateUpdate);
setStates((oldState: CustomStates) => { return {
Expand Down Expand Up @@ -49,7 +49,7 @@ export function CustomSetupScreenWithPrebuiltMediaPreviewModal({

return (
<main ref={(el) => {
el?.addEventListener('dyteStateUpdate', (e) => {
el?.addEventListener('rtkStateUpdate', (e) => {
const { detail: newStateUpdate } = e as unknown as { detail: CustomStates };
console.log('dyteStateUpdateSetup:: ', newStateUpdate);
setStates((oldState: CustomStates) => { return {
Expand Down
2 changes: 1 addition & 1 deletion samples/simple-group-call/src/components/Meeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function UI() {
const { meeting } = useRealtimeKitMeeting();
const self = useRealtimeKitSelector((meeting) => meeting.self);
const activeParticipants = useRealtimeKitSelector((meeting) =>
meeting.participants.active.toArray()
meeting.participants.videoSubscribed.toArray()
);

const pinnedParticipants = useRealtimeKitSelector((meeting) =>
Expand Down
4 changes: 2 additions & 2 deletions samples/simple-ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function Meeting() {
<div
className="flex flex-col w-full h-full"
ref={(el) => {
el?.addEventListener('dyteStateUpdate', (e: any) => {
el?.addEventListener('rtkStateUpdate', (e: any) => {
updateStates(e.detail);
});
}}
Expand Down Expand Up @@ -102,7 +102,7 @@ function App() {
audio: false,
video: false,
},
}).then((m) => m?.joinRoom());
}).then((m) => m?.join());
}, []);

// By default this component will cover the entire viewport.
Expand Down