Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
IWMSServer.ControlProtocols (C#)
The ControlProtocols property retrieves an IWMSPlugins object containing a collection of control protocol plug-ins that can be used to interpret and respond to client requests.
Syntax
IWMSPlugins = IWMSServer.ControlProtocols;
Property Value
An IWMSPlugins object containing the collection of control protocol plug-ins.
Remarks
This property is read-only. Plug-ins included with Windows Media Services support the RTSP, HTTP, and MMS protocols.
The following system plug-ins can be accessed by using the ControlProtocols property.
| Plug-in | Description |
| WMS HTTP Server Control Protocol | Enables a Windows Media server to communicate with clients by using the HTTP protocol. |
| WMS MMS Server Control Protocol | Enables a Windows Media server to communicate with clients by using the MMS protocol. |
| WMS RTSP Server Control Protocol | Enables a Windows Media server to communicate with clients by using the RTSP protocol. |
In Windows Server 2008 operating systems, the MMS protocol is not supported, and Windows Media Services does not provide an MMS Server Control Protocol plug-in.
Example Code
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Retrieve a pointer to an IWMSPlugins interface
// containing control protocol plug-ins.
Plugins = Server.ControlProtocols;
}
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 |