forked from Github/frigate
Update go2rtc to 1.5.0 (#5814)
* Update go2rtc to 1.3.0 * Increment to 1.3.1 * Increment to 1.3.2 * Update webrtc player to match latest * Update version to 1.4.0 * Update mse player * Update birdseye mse player * remove logs * Update docs to link to new version * Final web lint fixes * Update versions
This commit is contained in:
@@ -14,8 +14,9 @@ import { useCallback, useMemo, useState } from 'preact/hooks';
|
||||
import { useApiHost } from '../api';
|
||||
import useSWR from 'swr';
|
||||
import WebRtcPlayer from '../components/WebRtcPlayer';
|
||||
import MsePlayer from '../components/MsePlayer';
|
||||
import '../components/MsePlayer';
|
||||
import CameraControlPanel from '../components/CameraControlPanel';
|
||||
import { baseUrl } from '../api/baseUrl';
|
||||
|
||||
const emptyObject = Object.freeze({});
|
||||
|
||||
@@ -118,7 +119,10 @@ export default function Camera({ camera }) {
|
||||
player = (
|
||||
<Fragment>
|
||||
<div className="max-w-5xl">
|
||||
<MsePlayer camera={cameraConfig.live.stream_name} />
|
||||
<video-stream
|
||||
mode="mse"
|
||||
src={new URL(`${baseUrl.replace(/^http/, 'ws')}live/webrtc/api/ws?src=${camera}`)}
|
||||
/>
|
||||
</div>
|
||||
</Fragment>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user