mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Make sure jsmpeg works as expected
This commit is contained in:
parent
7ff2dae9d5
commit
6c95e78366
@ -94,7 +94,10 @@ export default function Camera({ camera }) {
|
|||||||
|
|
||||||
let player;
|
let player;
|
||||||
if (viewMode === 'live') {
|
if (viewMode === 'live') {
|
||||||
if (cameraConfig.restream.enabled) {
|
if (cameraConfig.live.source == 'restream') {
|
||||||
|
player = (
|
||||||
|
<Fragment>
|
||||||
|
<div>
|
||||||
<VideoPlayer
|
<VideoPlayer
|
||||||
options={{
|
options={{
|
||||||
preload: 'auto',
|
preload: 'auto',
|
||||||
@ -108,6 +111,9 @@ export default function Camera({ camera }) {
|
|||||||
}}
|
}}
|
||||||
onReady={() => {}}
|
onReady={() => {}}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
</Fragment>
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
player = (
|
player = (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user