mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-29 00:06:19 +01:00
Frontend Player Fixes (#4778)
* Fix Firefox WebRTC support * Set max size for birdseye
This commit is contained in:
parent
368c07cc34
commit
f3e0ced1cd
@ -19,7 +19,7 @@ export default function WebRtcPlayer({ camera, width, height }) {
|
||||
const msg = JSON.parse(ev.data);
|
||||
|
||||
if (msg.type === 'webrtc/candidate') {
|
||||
pc.addIceCandidate({ candidate: msg.value, sdpMid: '' });
|
||||
pc.addIceCandidate({ candidate: msg.value, sdpMid: '0' });
|
||||
} else if (msg.type === 'webrtc/answer') {
|
||||
pc.setRemoteDescription({ type: 'answer', sdp: msg.value });
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ export default function Birdseye() {
|
||||
return (
|
||||
<div className="space-y-4 p-2 px-4">
|
||||
<Heading size="2xl">Birdseye</Heading>
|
||||
<div>
|
||||
<div className="max-w-7xl">
|
||||
<JSMpegPlayer camera="birdseye" />
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user