This commit is contained in:
legop3
2026-01-17 20:28:16 -05:00
parent 7041a3c6df
commit 66b8c839b7
7 changed files with 32 additions and 10 deletions
+1 -1
View File
@@ -24,7 +24,6 @@ export default function DriverVideoPanel({layoutFormat = 'desktop'}) {
return () => clearInterval(timer);
}, [session?.mode]);
const roverId = session?.assignment?.roverId;
const av1Supported = supportsAv1WebRtc();
const rosterEntry =
roverId && session?.roster ? session.roster.find((item) => String(item.id) === String(roverId)) : null;
const hasAudio = Boolean(rosterEntry?.media?.audioPublishUrl);
@@ -71,6 +70,7 @@ export default function DriverVideoPanel({layoutFormat = 'desktop'}) {
const sources = useVideoRequests(entries);
const info = roverId && shouldShowVideo ? sources[roverId] : null;
const audioInfo = roverId && hasAudio ? sources[`${roverId}-audio`] : null;
const av1Supported = supportsAv1WebRtc();
const previewEntries = roverId
? [
{
+1 -1
View File
@@ -118,7 +118,7 @@ export default function RoomCameraPanel({
feed={feed}
label={camera.name || camera.id}
videoSession={previewSession}
preferVideo={av1Supported}
preferVideo={Boolean(previewSession?.url)}
/>
</article>
);