Skip to content

Commit 5eddfa9

Browse files
theomonnombcherry
andauthored
use video_fit contain by default (#89)
Co-authored-by: Ben Cherry <[email protected]>
1 parent 9e2b7fc commit 5eddfa9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ NEXT_PUBLIC_APP_CONFIG="
1010
title: 'LiveKit Agents Playground'
1111
description: 'A virtual workbench for your multimodal AI agents.'
1212
github_link: 'https://github.com/livekit/agents-playground'
13-
video_fit: 'cover' # 'contain' or 'cover'
13+
video_fit: 'contain' # 'contain' or 'cover'
1414
settings:
1515
editable: true # Should the user be able to edit settings in-app
1616
theme_color: 'cyan'

src/components/playground/Playground.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default function Playground({
117117
useDataChannel(onDataReceived);
118118

119119
const videoTileContent = useMemo(() => {
120-
const videoFitClassName = `object-${config.video_fit || "cover"}`;
120+
const videoFitClassName = `object-${config.video_fit || "contain"}`;
121121

122122
const disconnectedContent = (
123123
<div className="flex items-center justify-center text-gray-700 text-center w-full h-full">

src/hooks/useConfig.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export type UserSettings = {
4747
const defaultConfig: AppConfig = {
4848
title: "LiveKit Agents Playground",
4949
description: "A virtual workbench for testing multimodal AI agents.",
50-
video_fit: "cover",
50+
video_fit: "contain",
5151
settings: {
5252
editable: true,
5353
theme_color: "cyan",

0 commit comments

Comments
 (0)