Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows Media Server / June 2004

Tip: Looking for answers? Try searching our database.

Question abour WMServer System plug-in?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
smtppop - 16 Jun 2004 11:19 GMT
Depend on the document of wms SDK, we can create the Custom Plug-ins.But we
found the number of system plug-in is more than the custom plugins.

Question is how can we create system plug-in by ourself? Where is the
interface?

e.g. how can create a new Media parser plug-in?

Thanks
David Chen [MS] - 16 Jun 2004 18:44 GMT
Smtppop:

Media parser plug-ins interpret the format of the digital content from a
data source. Windows Media Services contains plug-ins that can parse MP3,
JPEG, and Windows Media Format. Media parser plug-ins are used in
conjunction with data source and data sink plug-ins. Data source plug-ins
retrieve content from a source, media parser plug-ins packetize the data,
and data sink plug-ins write the content to a client. Windows Media
Services includes the following media parser plug-ins.

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

Some programming example showed in th following:
----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------
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;

// Declare variables.
WMSServer   Server;
IWMSPlugins Plugins;

try {
   // Create a new WMSServer object.
   Server = new WMSServerClass();

   // 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.
----------------------------------------------------------------------------
--------------------------------

Hope this helps, for more information, please see MSDN support.

Thank you for using Windows Media Services

David Chen
Digital Media Division
This posting is provided "AS IS" with no warranties, and confers no rights
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.