Share via


IWMSServer.MediaParsers (Visual Basic .NET)

banner art

Previous Next

IWMSServer.MediaParsers (Visual Basic .NET)

The MediaParsers property retrieves an IWMSPlugins object containing a collection of media parser plug-ins.

Syntax

  IWMSPlugins = IWMSServer.MediaParsers

Property Value

An IWMSPlugins object containing the media parser plug-in collection.

Remarks

This property is read-only. You can use media parser plug-ins to format and interpret the data retrieved from the storage system by data source plug-ins.

The following system plug-ins can be accessed using the MediaParsers property.

Plug-in Description
WMS JPEG Media Parser Enables the Windows Media server to stream JPEG image files.
WMS MP3 Media Parser Enables the Windows Media server to stream MPEG Layer-3 audio (MP3) files.
WMS Windows Media Parser Enables the Windows Media server to stream Windows Media files with the following extensions: .asf, .wma, .wmv, and .wm.

Example Code

Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Private Sub GetMediaParsers()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Plugins As IWMSPlugins

Try
    ' Create the WMSServer object.
    Server = New WMSServer()

    ' Retrieve the IWMSPlugins object
    ' containing media parser plug-ins.
    Plugins = Server.MediaParsers

Catch excCom As COMException
    ' TODO: Handle COM exceptions.
Catch exc As Exception
    ' TODO: Handle errors.
Finally
    ' TODO: Clean-up code goes here.
End Try

End Sub

Requirements

Reference: Add a reference to Microsoft.WindowsMediaServices.

Namespace: Microsoft.WindowsMediaServices.Interop.

Assembly: Microsoft.WindowsMediaServices.dll.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003 family, Windows Server 2008 family.

See Also

Previous Next