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 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" }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue