Skip to content

Commit

Permalink
Live view not loading for MSE/JSMpeg if overriding live stream
Browse files Browse the repository at this point in the history
  • Loading branch information
leccelecce committed Apr 28, 2024
1 parent 8c610be commit cf42f7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/player/LivePlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function LivePlayer({
player = (
<MSEPlayer
className={`rounded-lg md:rounded-2xl size-full ${liveReady ? "" : "hidden"}`}
camera={cameraConfig.name}
camera={cameraConfig.live.stream_name}
playbackEnabled={cameraActive}
audioEnabled={playAudio}
onPlaying={() => setLiveReady(true)}
Expand All @@ -129,7 +129,7 @@ export default function LivePlayer({
player = (
<JSMpegPlayer
className="size-full flex justify-center rounded-lg md:rounded-2xl overflow-hidden"
camera={cameraConfig.name}
camera={cameraConfig.live.stream_name}
width={cameraConfig.detect.width}
height={cameraConfig.detect.height}
/>
Expand Down

0 comments on commit cf42f7e

Please sign in to comment.