Don't hard code localhost for mediamtx location.

This commit is contained in:
James Pace 2026-06-03 15:23:35 -04:00
parent 3a2589d6aa
commit 4336cc2cbc
1 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,8 @@ export function Autonomy() {
const statusString = useAtomValue(statusStringAtom);
const latLong = useAtomValue(latLongAtom);
const imageStreamURI = "http://" + window.location.hostname + ":8889/image/whep";
return (
<div>
<AppNav />
@ -66,7 +68,7 @@ export function Autonomy() {
<Row>
<Col lg={8}>
<WebRTCVideo
url="http://localhost:8889/image/whep"
url={ imageStreamURI }
controls
autoPlay
style={{ width: "100%", maxWidth: "800px" }}