Skip to content

Camera bar elements#29

Open
logbasem wants to merge 9 commits into
mainfrom
camera-bar-elements
Open

Camera bar elements#29
logbasem wants to merge 9 commits into
mainfrom
camera-bar-elements

Conversation

@logbasem
Copy link
Copy Markdown

@logbasem logbasem commented May 8, 2026

  • Dummy buttons implemented by Haidyn
  • Logic for launch, re-launch, and size change
  • Refactoring for cleaner code
  • Removed Add Camera button
  • Moved stream control buttons to be next to select camera dropdown

UI Screenshot

Screenshot 2026-05-08 at 7 10 31 AM

@logbasem logbasem requested a review from onkoe May 8, 2026 12:17
@onkoe
Copy link
Copy Markdown
Member

onkoe commented May 8, 2026

wow those linter errors were actually very useful

i'll review this shortly :)

Copy link
Copy Markdown
Member

@onkoe onkoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! just got a few clarity/alert nits to fix when convenient :D

Comment thread react-app/src/App.tsx Outdated
Comment thread react-app/src/App.tsx Outdated
Comment on lines +177 to +192
// IMPORTANT: Calls to the API should only run after this point.

/* API Requests Example
// Get the current mode (ex. 1920x1080 @ 30fps)
let modeResponse = await fetch(`/stream/cameras/${encodeURIComponent(selectedCameraPath)}/modes/current`);
console.log(await modeResponse.text());

// Get the possible modes for the camera (ex. { 0: "1920x1080 @ 30fps", .. })
let modesResponse = await fetch(`/stream/cameras/${encodeURIComponent(selectedCameraPath)}/modes`);
console.log(await modesResponse.json());

// Set the current mode for the camera by the index found in the top api request
let setResponse = await fetch(`/stream/cameras/${encodeURIComponent(selectedCameraPath)}/modes/set/${1}`, { method: "PUT" });
console.log(setResponse.status);
*/
};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the peerConnection.onicecandidate lambda's scope ends here -- should these comments still be there?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure since they weren't my comments, if you don't think they're needed I can delete

Comment thread react-app/src/CameraToolbar.tsx
Comment thread react-app/src/CameraToolbar.tsx Outdated
Comment thread react-app/src/CameraToolbar.tsx Outdated
Comment thread react-app/README.md Outdated
logbasem and others added 2 commits May 19, 2026 17:34
Co-authored-by: Barrett Ray <66580279+onkoe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants