Using the Stream Buffer Engine with the Video Control
[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]
This topic applies to Windows XP Service Pack 1 or later.
The Video Control can pause a live video stream using the Stream Buffer Engine.
To do so, create two instances of the Video Control. The first instance is for creating the tune request and recording the content into the stream buffer. The second instance is for playing back the content from the stream buffer.
Using the first instance of the Video Control, do the following:
- Create a tune request.
- Pass the tune request to the Video Control by calling the View method.
- Add the video encoder feature (CLSID_MSVidEncoder) to the active features collection.
- Enumerate the available output devices in the GUID_NULL category. Find the Stream Buffer Sink device and set it to be the active output device.
- Specify a file name for the output device.
- Disable video and audio rendering.
- Run the Video Control.
Using the second instance of the Video Control, do the following:
- Enumerate the available input devices in the GUID_NULL category. Set the Stream Buffer Source device as the active input device.
- Specify the same file name used previously in step 5 of the first instance of the Video Control.
- Run the Video Control.
Related topics
�
�