add streaming function to webcam