Implement Tuner v1 — Go backend, React frontend, Docker setup
- Go backend: REST API, M3U parser, FFmpeg/MediaMTX process manager - React/Vite frontend: HLS player, admin panel, channel browser (dark theme) - MediaMTX config for RTMP ingest + HLS output - Multi-stage Dockerfile (Go + Bun + Alpine runtime) - docker-compose.yml for single-container deployment - Sample M3U playlist with test streams Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
35
frontend/src/components/StatusBar.tsx
Normal file
35
frontend/src/components/StatusBar.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import type { StreamStatus } from "../types";
|
||||
|
||||
interface Props {
|
||||
status: StreamStatus | null;
|
||||
}
|
||||
|
||||
export default function StatusBar({ status }: Props) {
|
||||
if (!status) {
|
||||
return (
|
||||
<div className="status-bar">
|
||||
<span className="status-dot offline" />
|
||||
<span className="status-text">Connecting...</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="status-bar">
|
||||
<span className={`status-dot ${status.live ? "live" : "offline"}`} />
|
||||
<span className="status-text">
|
||||
{status.live ? "LIVE" : "Offline"}
|
||||
</span>
|
||||
<span className="status-separator">|</span>
|
||||
<span className="status-source">
|
||||
Source: {status.source === "obs" ? "OBS" : "IPTV"}
|
||||
</span>
|
||||
{status.source === "iptv" && status.channelName && (
|
||||
<>
|
||||
<span className="status-separator">|</span>
|
||||
<span className="status-channel">{status.channelName}</span>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user