photonvision icon indicating copy to clipboard operation
photonvision copied to clipboard

Add Websocket Camera Streaming

Open gerth2 opened this issue 3 years ago • 1 comments

Add logic to serve webcam streams over websockets

gerth2 avatar Oct 22 '22 02:10 gerth2

closes #528

gerth2 avatar Oct 22 '22 11:10 gerth2

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 avatar Oct 24 '22 12:10 gerth2

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

https://github.com/PhotonVision/photonvision/issues/548

https://github.com/PhotonVision/photonvision/issues/547

https://github.com/PhotonVision/photonvision/issues/546

https://github.com/PhotonVision/photonvision/issues/545

gerth2 avatar Oct 29 '22 13:10 gerth2