Skip to content

Commit

Permalink
Frontend Player Fixes (#4778)
Browse files Browse the repository at this point in the history
* Fix Firefox WebRTC support

* Set max size for birdseye
  • Loading branch information
NickM-27 committed Dec 29, 2022
1 parent 368c07c commit f3e0ced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/components/WebRtcPlayer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down
2 changes: 1 addition & 1 deletion web/src/routes/Birdseye.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit f3e0ced

Please sign in to comment.