The mini router doesn’t have too much power to do video processing. The video is mjpeg format which is not compressed.
You can change the resolution in the UI but I cannot ensure it works good. The mjpg-streamer is able to record to a file but should not support samba share.
You can read the basic docs here Webcam with the Linux UVC driver [Old OpenWrt Wiki]