Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions src/routes/manual-ctrl/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -322,15 +322,14 @@
<h3 class="text-xl font-semibold text-blue-900">CSI Camera 1</h3>
<!-- <p class="text-xs text-blue-600">{csiStatusMessage}</p> -->
</div>
<div class="relative flex items-center justify-center bg-black" style="height: 300px;">
<div class="relative flex items-center justify-center bg-white" style="height: 300px;">
<video
id="roverVideoCSI"
autoplay
playsinline
muted
width="820"
height="616"
class="h-full w-full object-contain"
style="aspect-ratio: 1/1; object-fit: fill;"
class="h-full w-auto"
>
Your browser does not support the video tag.
</video>
Expand Down Expand Up @@ -360,14 +359,12 @@
<h3 class="text-xl font-semibold text-blue-900">USB Camera (Front)</h3>
<!-- <p class="text-xs text-blue-600">{usbStatusMessage}</p> -->
</div>
<div class="relative flex items-center justify-center bg-black" style="height: 300px;">
<div class="relative flex items-center justify-center bg-white" style="height: 300px;">
<video
id="roverVideoUSB"
autoplay
playsinline
muted
width="1280"
height="720"
class="h-full w-full object-contain"
>
Your browser does not support the video tag.
Expand Down Expand Up @@ -398,15 +395,14 @@
<h3 class="text-xl font-semibold text-blue-900">CSI Camera 2</h3>
<!-- <p class="text-xs text-blue-600">{csi2StatusMessage}</p> -->
</div>
<div class="relative flex items-center justify-center bg-black" style="height: 300px;">
<div class="relative flex items-center justify-center bg-white" style="height: 300px;">
<video
id="roverVideoCSI2"
autoplay
playsinline
muted
width="820"
height="616"
class="h-full w-full object-contain"
style="aspect-ratio: 1/1; object-fit: fill;"
class="h-full w-auto"
>
Your browser does not support the video tag.
</video>
Expand Down
18 changes: 8 additions & 10 deletions src/routes/rovers/[id]/[pathId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -606,17 +606,17 @@
<!-- Camera Feed Display -->
<div class="mx-auto mb-4 w-full max-w-2xl" style="aspect-ratio: 820/616;">
<div
class="relative h-full w-full overflow-hidden rounded-lg border border-blue-200 bg-black"
class="relative h-full w-full overflow-hidden rounded-lg border border-blue-200 bg-white flex items-center justify-center"
>
<!-- Video elements for all three cameras -->
<!-- CSI Camera 1 -->
<video
id="roverVideo1"
autoplay
playsinline
muted
width="1280"
height="720"
class="absolute inset-0 h-full w-full object-contain {currentCamera === 1
style="aspect-ratio: 1/1; object-fit: fill;"
class="h-full w-auto {currentCamera === 1
? 'block'
: 'hidden'}"
>
Expand All @@ -627,22 +627,20 @@
autoplay
playsinline
muted
width="1280"
height="720"
class="absolute inset-0 h-full w-full object-contain {currentCamera === 2
class="w-full h-full object-contain {currentCamera === 2
? 'block'
: 'hidden'}"
>
Your browser does not support the video tag.
</video>
<!-- CSI Camera 2 -->
<video
id="roverVideo3"
autoplay
playsinline
muted
width="1280"
height="720"
class="absolute inset-0 h-full w-full object-contain {currentCamera === 3
style="aspect-ratio: 1/1; object-fit: fill;"
class="h-full w-auto {currentCamera === 3
? 'block'
: 'hidden'}"
>
Expand Down