WMEncoder.SourcePluginInfoManager
The SourcePluginInfoManager property retrieves a collection of objects that contain source plug-in information.
Syntax
IWMEncSourcePluginInfoManager = WMEncoder.SourcePluginInfoManager
Parameters
This property takes no parameters.
Property Value
An IWMEncSourcePluginInfoManager object.
Remarks
This property is read-only. See the IWMEncPluginInfo object to examine the available registry information.
Example Code
' Declare variables.
Dim Encoder As WMEncoder
Dim iPIndex As Integer
Dim iRIndex As Integer
Dim sScheme As String
Dim sResource As String
Dim SrcPlugMgr As IWMEncSourcePluginInfoManager
Dim PlugInfo As IWMEncPluginInfo
' Create a WMEncoder object and retrieve an
' IWMEncSourcePluginInfoManager object from it.
Set Encoder = New WMEncoder
Set SrcPlugMgr = Encoder.SourcePluginInfoManager
' Loop through the source plug-ins. Call the Item method on each
' plug-in to retrieve an IWMEncPluginInfo object. Use the
' SchemeType property to retrieve a string containing the scheme
' type of the plug-in. If the scheme type is "DEVICE" and if the
' plug-in supports resources, call the Item method to retrieve a
' string identifying the resource.
' To capture streams from an attached device, you must choose a
' specific device plug-in.
For iPIndex = 0 To SrcPlugMgr.Count - 1
Set PlugInfo = SrcPlugMgr.Item(iPIndex )
sScheme = PlugInfo.SchemeType
If sScheme = "DEVICE" Then
If PlugInfo.Resources = True Then
For iRIndex = 0 To PlugInfo.Count - 1
sResource = PlugInfo.Item(iRIndex)
Next
End If
End If
Next
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also