Every experiment takes me a lot of hours so when i got something working in VLC i have bet all on it.
The idea of passing through a web server like nginx or apache was appealing, but it seemed to me to have all working in single piece of software was more practical and probably easy; if i had one of such soft. working in BBB.
I may convert to the web nginx/apache solution in a second phase. Now i need something working even if not "elegant".
VLC depends on Qt and about 50 packages, so, i don't consider it ideal to provide a service. On the other side it solves both problems of reading the wecam and streaming it, so what it looses in fatness it gains in practicality. I gave it a shot.
In my desktop I got VLC reading the webcam, then streaming it to another instance of VLC running on the same computer. Them sending the stream to a web browser of the same computer (delay was short enough).
Then i compiled VLC for BBB, and repeated the steps followed in the laptop. There are some extra difficulties. E.g. BBB has no screen.
I arrived at reading the stream in VLC on the laptop where the stream is produced bt VLC reading a webcam connected to BBB.
For some reason i could not be able to arrive at final step: read the stream in the laptop browser. But, now it is really time for a beer !
I hope to conclude tomorrow.