Frontend Player Fixes (#4778)

* Fix Firefox WebRTC support

* Set max size for birdseye
This commit is contained in:
Nicolas Mowen 2022-12-29 09:36:13 -07:00 committed by GitHub
parent 368c07cc34
commit f3e0ced1cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 });
}

View File

@ -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>