WMEncProfile2.DetectCompatibility
![]() |
The DetectCompatibility method detects which version of Windows Media-based content the profile is compatible with according to its current settings.
Syntax
WMENC_PROFILE_COMPATIBILITY = WMEncProfile2.DetectCompatibility
Parameters
This method takes no parameters.
Return Values
This method returns a member of the WMENC_PROFILE_COMPATIBILITY enumeration type.
Remarks
The DetectCompatibility method indicates which version of Windows Media-based content the profile is currently compatible with. For example, if the profile uses a variable bit rate (VBR) for a stream, the profile is compatible with version 9.
Example Code
' Create a WMEncProfile2 object.
Dim Pro As WMEncProfile2
Set Pro = New WMEncProfile2
' Load a custom profile. REPLACE THE FILE NAME.
Pro.LoadFromFile "C:\Profiles\CustomProfile.prx"
' Retrieve a value indicating the Windows Media version that
' the profile is compatible with.
Dim vCompat As Variant
vCompat = Pro.DetectCompatibility
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also
.gif)