Theater SDK Banner 

Art
[Previous][Next]

Walkers.Find Method

Finds a Walker entry object by matching its string specification for a format type.

Syntax

Walkers.Find( FormatType)

Parameters

FormatType

A String value to match a Walker object type.

Return Values

Returns an object of IMSrvWalkerEntry type.

The following table includes valid values for FormatType parameter.

Value Description
MP2 File name extension.
MPE File name extension.
MPEG File name extension.
MPG File name extension.
MPA File name extension.
VOD File name extension.

Example

The following code finds a walker that can add a title with a certain file name extension to NetShow Theater Server. The code also displays the class ID of the walker if a suitable one is found:

Sub findWalker(extension As String)
' Declare walker as an object with IMSrvWalkers class type
Dim walker As IMSrvWalkerEntry
Dim ServerName As String
ServerName = "Localhost"

' NOTE: It is a known issue that you must be connected to
' a server in order to find a walker on a user's computer

MediaServer1.SetServer( ServerName )

'Assign the object provided by Find method to walker
Set walker = MediaServer1.Walkers.Find(extension)
If (Not walker Is Nothing) Then
        MsgBox(walker.ClsId)
    End If
End Sub
[Previous][Next]



© 1996-1998 Microsoft Corporation. All rights reserved