WMEncoder.ProfileCollection
The ProfileCollection property retrieves the collection of profiles.
Syntax
IWMEncProfileCollection = WMEncoder.ProfileCollection
Parameters
This property takes no parameters.
Property Value
An IWMEncProfileCollection object that contains the collection of profiles.
Remarks
Use this method to acquire an IWMEncProfileCollection object to iterate through the profile collection and retrieve a specific profile. Use the IWMEncProfile object to retrieve the name and description of a profile.
Example Code
' Create a WMEncoder object.
Dim Encoder As WMEncoder
Set Encoder = New WMEncoder
' Declare objects and variables.
Dim ProColl As IWMEncProfileCollection
Dim Pro As IWMEncProfile
Dim i As Integer
' Loop through the collection of system profiles to set
' a specific profile into the source group object.
Set ProColl = Encoder.ProfileCollection
For i = 0 To ProColl.Count - 1
Set Pro = ProColl.Item(i)
If Pro.Name = "Windows Media Video 8 for Local Area Network (384 Kbps)" Then Then
SrcGrp.Profile = ProColl.Item(i)
Exit For
End If
Next
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also