mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Merge branch 'release-0.11.0' of https://github.com/blakeblackshear/frigate into mqtt-motion-detector
This commit is contained in:
commit
5dbf7da38e
@ -79,12 +79,13 @@ RUN apt-get -qq update \
|
|||||||
&& apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
&& apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
# coral drivers
|
# coral drivers
|
||||||
libedgetpu1-max python3-tflite-runtime python3-pycoral \
|
libedgetpu1-max python3-tflite-runtime python3-pycoral \
|
||||||
jellyfin-ffmpeg \
|
|
||||||
&& pip3 install -U /wheels/*.whl \
|
&& pip3 install -U /wheels/*.whl \
|
||||||
# amd64 specific packages
|
# arch specific packages
|
||||||
&& if [ "${TARGETARCH}" = "amd64" ]; then \
|
&& if [ "${TARGETARCH}" = "amd64" ]; then \
|
||||||
apt-get -qq install --no-install-recommends -y \
|
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
mesa-va-drivers; \
|
mesa-va-drivers jellyfin-ffmpeg; else \
|
||||||
|
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
|
ffmpeg; \
|
||||||
fi \
|
fi \
|
||||||
&& rm -rf /wheels \
|
&& rm -rf /wheels \
|
||||||
&& apt-get remove gnupg apt-transport-https -y \
|
&& apt-get remove gnupg apt-transport-https -y \
|
||||||
|
|||||||
@ -18,7 +18,11 @@ const defaultSeekOptions = {
|
|||||||
|
|
||||||
export default function VideoPlayer({ children, options, seekOptions = {}, onReady = () => {}, onDispose = () => {} }) {
|
export default function VideoPlayer({ children, options, seekOptions = {}, onReady = () => {}, onDispose = () => {} }) {
|
||||||
const playerRef = useRef();
|
const playerRef = useRef();
|
||||||
|
|
||||||
|
if (!videojs.browser.IS_FIREFOX) {
|
||||||
|
defaultOptions.playbackRates.push(16);
|
||||||
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const player = videojs(playerRef.current, { ...defaultOptions, ...options }, () => {
|
const player = videojs(playerRef.current, { ...defaultOptions, ...options }, () => {
|
||||||
onReady(player);
|
onReady(player);
|
||||||
|
|||||||
@ -388,7 +388,7 @@ export default function Events({ path, ...props }) {
|
|||||||
onClick={() => (viewEvent === event.id ? setViewEvent(null) : setViewEvent(event.id))}
|
onClick={() => (viewEvent === event.id ? setViewEvent(null) : setViewEvent(event.id))}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="relative rounded-l flex-initial min-w-[125px] h-[125px] bg-contain"
|
className="relative rounded-l flex-initial min-w-[125px] h-[125px] bg-contain bg-no-repeat bg-center"
|
||||||
style={{
|
style={{
|
||||||
'background-image': `url(${apiHost}/api/events/${event.id}/thumbnail.jpg)`,
|
'background-image': `url(${apiHost}/api/events/${event.id}/thumbnail.jpg)`,
|
||||||
}}
|
}}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user