Skip to content

Conversation

@gerth2
Copy link
Contributor

@gerth2 gerth2 commented Oct 22, 2022

Add logic to serve webcam streams over websockets

@gerth2
Copy link
Contributor Author

gerth2 commented Oct 22, 2022

closes #528

@gerth2 gerth2 force-pushed the send_camera_streams_over_websockets branch from 5e4f373 to 34b9d21 Compare October 22, 2022 14:26
@gerth2
Copy link
Contributor Author

gerth2 commented Oct 24, 2022

Next-steps - reduce server side to only support one stream per client. This should reduce the complexity of the per-frame serve operation, and allow us to send a binary message with just the jpeg bytes.

On the client side, use something like this to encode the bytes to base64 and stuff them into the DOM as the new image to show

@gerth2 gerth2 marked this pull request as ready for review October 25, 2022 13:32
@gerth2 gerth2 requested a review from a team as a code owner October 25, 2022 13:32
@gerth2 gerth2 force-pushed the send_camera_streams_over_websockets branch from c8cb3f6 to d61aea5 Compare October 29, 2022 11:41
@gerth2
Copy link
Contributor Author

gerth2 commented Oct 29, 2022

This should be ready to see the light of day, with notable follow-ups:

#548

#547

#546

#545

@gerth2 gerth2 merged commit aaac6a4 into PhotonVision:master Oct 30, 2022
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.

Camera stream sometimes doesn’t appear on page load

2 participants