ltmmCaptureCtrl.GetSubObject Method

Visual Basic Example 1
Visual Basic Example 2

Syntax

object.GetSubObject(ObjType As Long) As Object

Remarks

Retrieves the specified graph object.

If the method fails, an error is raised. For more information, refer to the Error Codes.

To obtain objects (including a filter being cached) from the convert graph, use the ltmmConvertCtrl.GetSubObject Method.

NOTE: This method should not be used in order to change properties on objects of type TargetFilter when the filter is multiplexer or sink, the target filters are not added to the capture graph until the capture graph being built using ltmmCaptureCtrl.ReadyCapture or ltmmCaptureCtrl.StartCapture. But at this point, the graph is in running state. Some multiplexers or sinks might not be able to change some settings in running mode. By default, when the capture is stopped, the multiplexer and sink are destroyed so the only way to change their settings in stopped mode is to create them before the capture starts. This can be done by first setting the ltmmTargetFormat.UseFilterCache property to true and then retrieving the objects using ltmmTargetFormat.GetCacheObject.

Platforms

Win32, x64

See Also

Elements:

ltmmCapture_Object Constants

Topics:

Multimedia Properties, Methods and Events