IWMEncPluginInfo.SchemeType
The SchemeType property retrieves the scheme type of the plug-in.
Syntax
String = IWMEncPluginInfo.SchemeType
Parameters
This property takes no parameters.
Property Value
A String containing the scheme type.
Remarks
The scheme type occupies the root position of the registration information structure and broadly categorizes the plug-in. For instance, in the string Device://Card1, Device:// is the scheme type. The following table lists the available scheme types.
Scheme type | Description |
Device | Identifies a source plug-in that enables stream capture from a device attached to a computer. |
File | Identifies a source plug-in that enables stream capture from a file. |
FileTransfer | Identifies a source plug-in that enables HTML streaming. |
MultiChannel | Identifies a source plug-in that enables multichannel audio. |
ScreenCap | Identifies a source plug-in that enables screen capture. |
TCGroupTransformPlugin | Identifies a transform plug-in that enables time compression. |
UserScript | Identifies a source plug-in that enables transmission of a script. |
Example Code
' Declare objects.
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. If the resource indicates that
' the plug-in captures streams from the default video device,
' retrieve registry information about the plug-in.
' To capture streams from an attached device, you must choose a
' specific device plug-in.
Dim sCLSID As String
Dim sCopyright As String
Dim bExclusive As Boolean
Dim bHidden As Boolean
Dim pPropPage As Boolean
Dim sURL As String
Dim enumMediaType As WMENC_SOURCE_TYPE
Dim enumPluginType As WMENC_PLUGIN_TYPE
Dim sName As String
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)
If sResource = "Default_Video_Device" Then
' Retrieve the plug-in GUID.
sCLSID = PlugInfo.CLSID
' Retrieve the copyright information.
sCopyright = PlugInfo.Copyright
' Determine whether the plug-in can be used
' more than once in a source group.
bExclusive = PlugInfo.Exclusive
' Determine whether the plug-in is hidden
' from the UI.
bHidden = PlugInfo.Hidden
' Retrieve the URL, if any, of the Web site
' containing information about the plug-in.
sURL = PlugInfo.InfoURL
' Retrieve the media types supported by the
' plug-in. This is a bitwise OR of the
' WMENC_SOURCE_TYPE enumeration type.
enumMediaType = PlugInfo.MediaType
' Retrieve the name of the plug-in.
sName = PlugInfo.Name
' Determine whether the plug-in is a source or
' transform type.
enumPluginType = PlugInfo.PluginType
' Determine whether the plug-in supports
' property pages.
bPropPage = PlugInfo.PropertyPage
End If
Next
End If
End If
Next
' Continue configuring the encoding session.
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also