mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 20:26:39 +00:00
Show both hls and webrtc streams
This commit is contained in:
parent
5247b74fd4
commit
3e227ba01b
@ -209,6 +209,12 @@ export class HaCameraStream extends LitElement {
|
|||||||
}
|
}
|
||||||
return [{ type: supportedTypes[0], visible: true }];
|
return [{ type: supportedTypes[0], visible: true }];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return [
|
||||||
|
{ type: STREAM_TYPE_HLS, visible: true },
|
||||||
|
{ type: STREAM_TYPE_WEB_RTC, visible: true },
|
||||||
|
];
|
||||||
|
|
||||||
if (hlsStreams && webRtcStreams) {
|
if (hlsStreams && webRtcStreams) {
|
||||||
// fully loaded
|
// fully loaded
|
||||||
if (
|
if (
|
||||||
@ -266,10 +272,6 @@ export class HaCameraStream extends LitElement {
|
|||||||
img {
|
img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user