Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

🔥(frontend) remove obsolete props from duplicated LiveKit controlbar

lebaudantoine8a3a0d575945
diff --git a/src/frontend/src/features/rooms/livekit/prefabs/ControlBar/ControlBar.tsx b/src/frontend/src/features/rooms/livekit/prefabs/ControlBar/ControlBar.tsx
index f9bee237..ce34e52a 100644
--- a/src/frontend/src/features/rooms/livekit/prefabs/ControlBar/ControlBar.tsx
+++ b/src/frontend/src/features/rooms/livekit/prefabs/ControlBar/ControlBar.tsx
@@ -6,45 +6,13 @@ import { DesktopControlBar } from './DesktopControlBar'
import { SettingsDialogProvider } from '../../components/controls/SettingsDialogContext'
import { useIsMobile } from '@/utils/useIsMobile'
-/** @public */
-export type ControlBarControls = {
- microphone?: boolean
- camera?: boolean
- chat?: boolean
- screenShare?: boolean
- leave?: boolean
- settings?: boolean
-}
-
-/** @public */
export interface ControlBarProps extends React.HTMLAttributes<HTMLDivElement> {
onDeviceError?: (error: { source: Track.Source; error: Error }) => void
- variation?: 'minimal' | 'verbose' | 'textOnly'
- controls?: ControlBarControls
- /**
- * If `true`, the user's device choices will be persisted.
- * This will enable the user to have the same device choices when they rejoin the room.
- * @defaultValue true
- * @alpha
- */
- saveUserChoices?: boolean
}
/**
* The `ControlBar` prefab gives the user the basic user interface to control their
* media devices (camera, microphone and screen share), open the `Chat` and leave the room.
- *
- * @remarks
- * This component is build with other LiveKit components like `TrackToggle`,
- * `DeviceSelectorButton`, `DisconnectButton` and `StartAudio`.
- *
- * @example
- * ```tsx
- * <LiveKitRoom>
- * <ControlBar />
- * </LiveKitRoom>
- * ```
- * @public
*/
export function ControlBar({ onDeviceError }: ControlBarProps) {
const isMobile = useIsMobile()