add video capture funtion.