Don't hard code localhost for mediamtx location.

This commit is contained in:
jimmy committed 2026-06-03 15:23:35 -04:00
1 parent 3a2589d6aa
commit 4336cc2cbc
1 file changed
+3 -1
+3 -1
View File
@@ -58,6 +58,8 @@ export function Autonomy() {
const statusString = useAtomValue(statusStringAtom); const statusString = useAtomValue(statusStringAtom);
const latLong = useAtomValue(latLongAtom); const latLong = useAtomValue(latLongAtom);
const imageStreamURI = "http://" + window.location.hostname + ":8889/image/whep";
return ( return (
<div> <div>
<AppNav /> <AppNav />
@@ -66,7 +68,7 @@ export function Autonomy() {
<Row> <Row>
<Col lg={8}> <Col lg={8}>
<WebRTCVideo <WebRTCVideo
url="http://localhost:8889/image/whep" url={ imageStreamURI }
controls controls
autoPlay autoPlay
style={{ width: "100%", maxWidth: "800px" }} style={{ width: "100%", maxWidth: "800px" }}