mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
ensure jsmpeg canvas is rounded and clipped (#9842)
This commit is contained in:
parent
ac0059cc1a
commit
fa384a7f9d
@ -37,7 +37,9 @@ export default function CameraImage({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`relative w-full h-full flex justify-center ${className}`}
|
className={`relative w-full h-full flex justify-center ${
|
||||||
|
className || ""
|
||||||
|
}`}
|
||||||
ref={containerRef}
|
ref={containerRef}
|
||||||
>
|
>
|
||||||
{enabled ? (
|
{enabled ? (
|
||||||
|
@ -111,7 +111,7 @@ export default function LivePlayer({
|
|||||||
} else if (liveMode == "jsmpeg") {
|
} else if (liveMode == "jsmpeg") {
|
||||||
player = (
|
player = (
|
||||||
<JSMpegPlayer
|
<JSMpegPlayer
|
||||||
className="w-full flex justify-center"
|
className="w-full flex justify-center rounded-2xl overflow-hidden"
|
||||||
camera={cameraConfig.name}
|
camera={cameraConfig.name}
|
||||||
width={cameraConfig.detect.width}
|
width={cameraConfig.detect.width}
|
||||||
height={cameraConfig.detect.height}
|
height={cameraConfig.detect.height}
|
||||||
|
Loading…
Reference in New Issue
Block a user