Capturing saving webcam audio video

Recently i’ve done successfully project of capturing & save photo through webcam using vuejs. I’d like to know how does it happen to be able to capture & saving webcam audio video. Thankful if anyone could share the resources in this regard.