预览视频 (Windows 多媒体)
以下示例使用 capPreviewRate 宏将预览模式的帧显示速率设置为每帧 66 毫秒,然后使用 capPreview 宏将捕获窗口置于预览模式。
// Create the capture window.
HWND hWndC = capCreateCaptureWindow(TEXT("My Capture Window"),
WS_CHILD | WS_VISIBLE, 0, 0, 160, 120, hwndParent, nID);
capPreviewRate(hWndC, 66); // rate, in milliseconds
capPreview(hWndC, TRUE); // starts preview
// Preview
capPreview(hWndC, FALSE); // disables preview
相关主题
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈