ltmmPlayCtrl.GetPreferredFilter Method

 

Syntax

object.GetPreferredFilter(FilterType As Long) As String

 

FilterType

Value that indicates the filter type. For a list of possible values, refer to ltmmPlay_PreferredFilter Constants.

Remarks

Retrieves the preferred filter display name set using ltmmPlayCtrl.SetPreferredFilter.

Use it to determine whether a preferred filter has been set by ltmmPlayCtrl.SetPreferredFilter. It returns either NULL (if no preferred filter has been set), or a display name indicating the preferred filter.

A display name uniquely identifies the filter. Display names have the following format:

@device:sw:GUID\GUID

For example, the display name for the LEAD MPEG2 Transport Demultiplexer is:

@device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}\{E2B7DF1A-38C5-11D5-91F6-00104BDB8FF9}

Note that there is a single backslash between the two GUIDs.

A list of display names for common filters can be found in ltmmFilter Constants.

Refer to ltmmPlayCtrl.SetPreferredFilter for more information on filter display names.

Platforms

Win32, x64

See Also

Elements:

ltmmPlayCtrl Object, ltmmPlayCtrl.SetPreferredFilter Method

Topics:

Multimedia Properties, Methods and Events