Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 1.14 KB

previewing-video.md

File metadata and controls

45 lines (27 loc) · 1.14 KB
title description ms.assetid keywords ms.topic ms.date
Previewing Video (Windows Multimedia)
This example in Windows Multimedia uses capPreviewRate to set the frame display rate for preview mode and capPreview to put the capture window in preview mode.
33ae7d07-5fea-47d7-b60d-4ee412e91dec
capPreview macro
capPreviewRate macro
article
05/31/2018

Previewing Video (Windows Multimedia)

The following example uses the capPreviewRate macro to set the frame display rate for preview mode to 66 milliseconds per frame and then uses the capPreview macro to place the capture window in preview mode.

// 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 

Related topics

Using Video Capture