Don't hard code localhost for mediamtx location.
This commit is contained in:
parent
3a2589d6aa
commit
4336cc2cbc
|
|
@ -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" }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue