Question abour WMServer System plug-in?
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Question abour WMServer System plug-in?

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media Server
Author Message
smtppop
Guest





Posted: Wed Jun 16, 2004 2:19 pm    Post subject: Question abour WMServer System plug-in? Reply with quote

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

Back to top
David Chen [MS]
Guest





Posted: Wed Jun 16, 2004 9:44 pm    Post subject: RE: Question abour WMServer System plug-in? Reply with quote

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.
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB