refactor(studio): GoLiveView module, re-export, stories
- Module go-live-view: types, useGoLiveView, Header, Preview, StreamInfo,
EncoderSetup, QuickInstructions, MicLevel, Skeleton, orchestrator
- Re-export from GoLiveView.tsx
- Stories: Default, Loading (Skeleton); decorator min-h-layout-main
- Fix: text-[10px] -> text-xs, w-[60%] -> w-3/5
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 00:57:22 +00:00
|
|
|
import { Radio, Monitor } from 'lucide-react';
|
|
|
|
|
|
|
|
|
|
interface GoLiveViewPreviewProps {
|
|
|
|
|
isLive: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function GoLiveViewPreview({ isLive }: GoLiveViewPreviewProps) {
|
|
|
|
|
return (
|
2026-02-07 13:39:24 +00:00
|
|
|
<div className="aspect-video bg-black rounded-xl overflow-hidden border border-border relative group">
|
refactor(studio): GoLiveView module, re-export, stories
- Module go-live-view: types, useGoLiveView, Header, Preview, StreamInfo,
EncoderSetup, QuickInstructions, MicLevel, Skeleton, orchestrator
- Re-export from GoLiveView.tsx
- Stories: Default, Loading (Skeleton); decorator min-h-layout-main
- Fix: text-[10px] -> text-xs, w-[60%] -> w-3/5
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 00:57:22 +00:00
|
|
|
{isLive ? (
|
2026-02-07 13:39:24 +00:00
|
|
|
<div className="w-full h-full flex items-center justify-center bg-card">
|
refactor(studio): GoLiveView module, re-export, stories
- Module go-live-view: types, useGoLiveView, Header, Preview, StreamInfo,
EncoderSetup, QuickInstructions, MicLevel, Skeleton, orchestrator
- Re-export from GoLiveView.tsx
- Stories: Default, Loading (Skeleton); decorator min-h-layout-main
- Fix: text-[10px] -> text-xs, w-[60%] -> w-3/5
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 00:57:22 +00:00
|
|
|
<div className="text-center animate-pulse">
|
2026-02-07 13:39:24 +00:00
|
|
|
<Radio className="w-16 h-16 text-destructive mx-auto mb-4" />
|
|
|
|
|
<p className="text-muted-foreground">Receiving Stream Data...</p>
|
refactor(studio): GoLiveView module, re-export, stories
- Module go-live-view: types, useGoLiveView, Header, Preview, StreamInfo,
EncoderSetup, QuickInstructions, MicLevel, Skeleton, orchestrator
- Re-export from GoLiveView.tsx
- Stories: Default, Loading (Skeleton); decorator min-h-layout-main
- Fix: text-[10px] -> text-xs, w-[60%] -> w-3/5
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 00:57:22 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
) : (
|
2026-02-07 13:39:24 +00:00
|
|
|
<div className="w-full h-full flex flex-col items-center justify-center bg-card/50 text-muted-foreground">
|
refactor(studio): GoLiveView module, re-export, stories
- Module go-live-view: types, useGoLiveView, Header, Preview, StreamInfo,
EncoderSetup, QuickInstructions, MicLevel, Skeleton, orchestrator
- Re-export from GoLiveView.tsx
- Stories: Default, Loading (Skeleton); decorator min-h-layout-main
- Fix: text-[10px] -> text-xs, w-[60%] -> w-3/5
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 00:57:22 +00:00
|
|
|
<div className="text-center">
|
|
|
|
|
<Monitor className="w-16 h-16 mx-auto mb-4 opacity-50" />
|
|
|
|
|
<p>Stream Offline</p>
|
|
|
|
|
<p className="text-xs mt-2">Connect OBS to start preview</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-02-12 01:09:29 +00:00
|
|
|
<div className="absolute top-4 right-4 bg-black/50 px-2 py-1 rounded text-xs text-foreground font-mono">
|
refactor(studio): GoLiveView module, re-export, stories
- Module go-live-view: types, useGoLiveView, Header, Preview, StreamInfo,
EncoderSetup, QuickInstructions, MicLevel, Skeleton, orchestrator
- Re-export from GoLiveView.tsx
- Stories: Default, Loading (Skeleton); decorator min-h-layout-main
- Fix: text-[10px] -> text-xs, w-[60%] -> w-3/5
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 00:57:22 +00:00
|
|
|
1080p 60fps
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|