Its up to your webcam. For example: if you use Axis 207 as cam it offer a MP4 stream and give you the html code to do this right out of the cam.
Take a look what your cam offer and what you can do with it. It should be possible to put your code in a content island or in a sticky posting