Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

A Windows 7 Media Foundation-based capture application may not restart capture stream on resume from Sleep


Symptoms

Consider the following scenario:

  • You have a computer running Windows 7.
  • You are running or developing a video capture application that uses Microsoft's Media Foundation framework.
  • Windows enters Sleep and then later is resumed from Sleep.

In this scenario, the video capture window may be stopped with a frozen or blank image.

↑ Back to the top


Cause

Media Foundation does not restart the capture stream on resume from Sleep. This is by design. It is up to the application (or driver) to stop the capture stream when the system enters Sleep and then restart the capture stream upon resume from Sleep.

↑ Back to the top


Resolution

To work around this issue, use one of following steps:
  1. If the video capture application has a Stop or Pause button, try clicking on it and then click on the Play button.
  2. If there is no Stop or Play button in the video capture application, exit and restart the application.


↑ Back to the top


More Information

DirectShow has the capability of restarting the capture stream on resume from Sleep. As a result, some application developers might not be aware of the changes between DirectShow and Media Foundation when they write or rewrite their video capture application under the Media Foundation framework.

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2697577
Revision : 1
Created on : 1/7/2017
Published on : 4/11/2012
Exists online : False
Views : 100