forked from Github/frigate
UI Tweaks (#11931)
* Show number of items instead of dot * Don't call error when connection has been closed on purpose * Use motion icon for motion * Show text on tablets as well
This commit is contained in:
@@ -328,7 +328,10 @@ function MSEPlayer({
|
||||
|
||||
setBufferTimeout(
|
||||
setTimeout(() => {
|
||||
if (document.visibilityState === "visible") {
|
||||
if (
|
||||
document.visibilityState === "visible" &&
|
||||
wsRef.current != undefined
|
||||
) {
|
||||
onError("stalled");
|
||||
}
|
||||
}, 3000),
|
||||
|
||||
@@ -238,7 +238,10 @@ export default function WebRtcPlayer({
|
||||
|
||||
setBufferTimeout(
|
||||
setTimeout(() => {
|
||||
if (document.visibilityState === "visible") {
|
||||
if (
|
||||
document.visibilityState === "visible" &&
|
||||
pcRef.current != undefined
|
||||
) {
|
||||
onError("stalled");
|
||||
}
|
||||
}, 3000),
|
||||
|
||||
Reference in New Issue
Block a user