- Introduced ResizeImage function to resize images before encoding.
- Updated ImageToBytes function to accept pointer to image.
- Added nfnt/resize library for image resizing.
- Updated go.mod and go.sum to include new dependencies.
- Updated image processing in HandleLiveStreamSD, GetSnapshotRaw, and other functions to use resized images.
- Updated yarn.lock for ui package version change.
Because of missing imports and some undefined variables the latest code wouldn't compile.
I have fixed it.
The only thing I am not sure about is dispatchConfig: PropTypes.bool.isRequired
Not sure if it's truly bool or if this is valid, but it works finally again, but with proper log timezone!
There were some build issues, also eslint was preventing build because of too old react-scripts, that was in conflict with another requirement for more recent eslint, so I've updated react-scripts, so newer eslint isn't a problem anymore.