Prevent video freezing after screen saver and workstation lock or not.

Namespace:  AForge.Video.DirectShow
Assembly:  AForge.Video.DirectShow (in AForge.Video.DirectShow.dll) Version: (


public bool PreventFreezing { get; set; }


The value specifies if the class should prevent video freezing during and after screen saver or workstation lock. To prevent freezing the DirectShow graph should not contain Renderer filter, which is added by Render() method of graph. However, in some cases it may be required to call Render() method of graph, since it may add some more filters, which may be required for playing video. So, the property is a trade off - it is possible to prevent video freezing skipping adding renderer filter or it is possible to keep renderer filter, but video may freeze during screen saver.

Note:The property may become obsolete in the future when approach to disable freezing and adding all required filters is found.

Note:The property should be set before calling Start()()() method of the class to have effect.

Default value of this property is set to false.

See Also