ltmmSampleTarget Object
The ltmmSampleTarget Object allows the user to fetch single media samples from the ltmmConvertCtrl and ltmmCaptureCtrl objects.
To create an instance of an ltmmSampleTarget object:
Dim object As ltmmSampleTarget
Set object = New ltmmSampleTarget
The ltmmSampleTarget Object contains the following methods:
Methods
ltmmSampleTarget.GetAcceptedMediaType
ltmmSampleTarget.GetConnectedMediaType
ltmmSampleTarget.SetAcceptedMediaType
A sample target will accept samples having a specific media type. This media type is set in the ltmmMediaType object. Once the media type is set using the ltmmMediaTypeDisp Interface, the media type for the sample target is set by calling the ltmmSampleTarget method SetAcceptedMediaType. (To determine the accepted media type of the sample target, call the GetAcceptedMediaType method.) The sample target object must be set to receive samples from either a ltmmCaptureCtrl Object or a ltmmConvertCtrl Object and then start either the capture or the convert process. Once that is done, the sample target can begin receiving samples.
Using the GetSample method, the sample target can get delivered samples one at a time, until the end of the stream is reached. When the end of the stream is reached, the convert or capture process should be stopped. For a more detailed description of this process, refer to Implementing an ltmmSampleTarget Object.
Win32, x64
See Also