Skip to content

Commit

Permalink
Fix LiveFeed Stream Credentials (#2092)
Browse files Browse the repository at this point in the history
  • Loading branch information
gigincg authored Feb 12, 2022
1 parent a763c5c commit 285626a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/Components/Facility/Consultations/LiveFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,7 @@ const PageTitle = loadable(() => import("../../Common/PageTitle"));
const LiveFeed = (props: any) => {
const middlewareHostname =
props.middlewareHostname || "dev_middleware.coronasafe.live";
const [asset, setAsset] = useState<any>(
props.asset ?? {
id: "",
hostname: "192.168.1.64",
port: "80",
username: "onvif_user",
password: "qwerty123",
}
);
const [asset, setAsset] = useState<any>(props.asset);
const [sourceUrl, setSourceUrl] = useState<string>();
const [position, setPosition] = useState<any>();
const [presets, setPresets] = useState<any>([]);
Expand All @@ -41,7 +33,7 @@ const LiveFeed = (props: any) => {
const requestStream = () => {
axios
.post(`https://${middlewareHostname}/start`, {
uri: "rtsp://remote:[email protected]:554/",
uri: `rtsp://${asset.username}:${asset.password}@${asset.hostname}:554/`,
})
.then((resp: any) => {
setSourceUrl(`https://${middlewareHostname}${resp.data.uri}`);
Expand Down

0 comments on commit 285626a

Please sign in to comment.