promote captureVideoLayer to global