Version: 2021.1
public static void CreateAsync (Windows.WebCam.VideoCapture.OnVideoCaptureResourceCreatedCallback onCreatedCallback);
public static void CreateAsync (bool showHolograms, Windows.WebCam.VideoCapture.OnVideoCaptureResourceCreatedCallback onCreatedCallback);

参数

showHolograms Allows capturing holograms in your video.
Note: Capturing holograms is currently disabled and this parameter is ignored.
onCreatedCallback 此回调将在 VideoCapture 实例创建完成并准备就绪后调用。

描述

异步创建 VideoCapture 对象的实例,该实例可将来自网络摄像机的视频录制到磁盘上。

如果实例创建失败,返回的实例将为 null。