IWMSServer.MediaParsers (C#)

banner art

Previous Next

IWMSServer.MediaParsers (C#)

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

using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;









    // Retrieve the IWMSPlugins object
    // containing media parser plug-ins.
    Plugins = Server.MediaParsers;
}
catch (COMException comExc) {
    // TODO: Handle COM exceptions.
}
catch (Exception e) {
    // TODO: Handle exceptions.
}

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