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,20 +94,26 @@ export default function Camera({ camera }) {
|
|||||||
|
|
||||||
let player;
|
let player;
|
||||||
if (viewMode === 'live') {
|
if (viewMode === 'live') {
|
||||||
if (cameraConfig.restream.enabled) {
|
if (cameraConfig.live.source == 'restream') {
|
||||||
<VideoPlayer
|
player = (
|
||||||
options={{
|
<Fragment>
|
||||||
preload: 'auto',
|
<div>
|
||||||
autoplay: true,
|
<VideoPlayer
|
||||||
sources: [
|
options={{
|
||||||
{
|
preload: 'auto',
|
||||||
src: `${apiHost}/restream/${camera}`,
|
autoplay: true,
|
||||||
type: 'video/mp4',
|
sources: [
|
||||||
},
|
{
|
||||||
],
|
src: `${apiHost}/restream/${camera}`,
|
||||||
}}
|
type: 'video/mp4',
|
||||||
onReady={() => {}}
|
},
|
||||||
/>
|
],
|
||||||
|
}}
|
||||||
|
onReady={() => {}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</Fragment>
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
player = (
|
player = (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user