setStreamSettingsOpen(false)}
+ />
+ )}
+ {(watchedStream || (publishState !== "idle" && publishState !== "stopped")) && (
+
+ {publishState !== "idle" && publishState !== "stopped" && (
+
+
+
+ 🖥️ {t("publish.title")}
+
+
+ {publishState === "live"
+ ? t("publish.viewers", { count: String(publishViewers.length) })
+ : t("publish.starting")}
+
+
+
+ {/* muted: this is our own capture playing back locally */}
+
+ {publishPending.map(([clid, message]) => (
+
+
+ {publishClientName(clid)}
+ {message && {message}}
+
+
+
+
+
+ ))}
+ {publishError &&
{publishError}
}
+
+ )}
+ {watchedStream && (
+
+
+
+ 📺 {watchedStream.name || t("stream.untitled")}
+
+
+ {streamState === "connected" ? t("stream.live") : t(`stream.state.${streamState}`)}
+
+
+
+ {/* muted so autoplay is never blocked; the user unmutes via the controls */}
+
+ {streamError &&
{streamError}
}
+
+ )}
+
+ )}
{clientContextMenu && (
👉
{t("clientContext.poke")}
+ {!clientContextMenu.isSelf && streamInfos[clientContextMenu.clientId] && (
+
+ )}
{!clientContextMenu.isSelf && (