Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Fix typescript errors
Gabe Kangasf2499ebb5d54
diff --git a/web/pages/components/statistic.tsx b/web/pages/components/statistic.tsxindex a2fc48ceb4..45cca053e2 100644--- a/web/pages/components/statistic.tsx+++ b/web/pages/components/statistic.tsx@@ -6,7 +6,7 @@ interface ItemProps {value: string,prefix: JSX.Element,color: string,- progress: boolean,+ progress?: boolean,};export default function StatisticItem(props: ItemProps) {@@ -41,8 +41,8 @@ function ProgressView({title, value, prefix, color}) {)}-function StatisticView({title, value, prefix}) {- const valueStyle = { color: "#334", fontSize: "1.8rem" };+function StatisticView({title, value, prefix, color}) {+ const valueStyle = { fontSize: "1.8rem" };return (<Statisticdiff --git a/web/pages/index.tsx b/web/pages/index.tsxindex edba03a42a..bd9e2d124c 100644--- a/web/pages/index.tsx+++ b/web/pages/index.tsx@@ -122,11 +122,13 @@ export default function Stats() {title="Outbound Video Stream"value={`${setting.videoBitrate} kbps ${setting.framerate} fps`}prefix={null}+ color="#334"/><StatisticItemtitle="Outbound Audio Stream"value={audioSetting}prefix={null}+ color="#334"/></Row>);@@ -147,16 +149,19 @@ export default function Stats() {)}`}value={formatDistanceToNow(new Date(broadcaster.time))}prefix={<ClockCircleOutlined />}+ color="#334"/><StatisticItemtitle="Viewers"value={viewerCount}prefix={<UserOutlined />}+ color="#334"/><StatisticItemtitle="Peak viewer count"value={sessionMaxViewerCount}prefix={<UserOutlined />}+ color="#334"/></Row>@@ -165,16 +170,19 @@ export default function Stats() {title="Input"value={formatIPAddress(remoteAddr)}prefix={null}+ color="#334"/><StatisticItemtitle="Inbound Video Stream"value={streamVideoDetailString}prefix={null}+ color="#334"/><StatisticItemtitle="Inbound Audio Stream"value={streamAudioDetailString}prefix={null}+ color="#334"/></Row>@@ -185,11 +193,13 @@ export default function Stats() {title="Stream key"value={config.streamKey}prefix={null}+ color="#334"/><StatisticItemtitle="Directory registration enabled"value={config.yp.enabled.toString()}prefix={null}+ color="#334"/></Row>diff --git a/web/pages/viewer-info.tsx b/web/pages/viewer-info.tsxindex 04977adf31..5595eacacf 100644--- a/web/pages/viewer-info.tsx+++ b/web/pages/viewer-info.tsx@@ -109,16 +109,19 @@ export default function ViewersOverTime() {title="Current viewers"value={viewerCount.toString()}prefix={<UserOutlined />}+ color="#334"/><StatisticItemtitle="Peak viewers this session"value={sessionPeakViewerCount.toString()}prefix={<UserOutlined />}+ color="#334"/><StatisticItemtitle="Peak viewers overall"value={overallPeakViewerCount.toString()}prefix={<UserOutlined />}+ color="#334"/></Row><div className="chart-container">