record video to canvas