IWMSServer.ControlProtocols (Visual Basic .NET)
Previous | Next |
IWMSServer.ControlProtocols (Visual Basic .NET)
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
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub GetControlProtocols() ' Declare variables. Dim Server As WMSServer Dim Plugins As IWMSPlugins Try ' Create the WMSServer object. Server = New WMSServer() ' Retrieve a pointer to an IWMSPlugins interface ' containing control protocol plug-ins. Plugins = Server.ControlProtocols 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 |