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.
The BufferSetting property specifies and retrieves a member of the WMS_BUFFER_SETTING enumeration type indicating the amount of buffering that is done on a broadcast sink.
WMS_BUFFER_SETTING = BroadcastPublishingPoint.BufferSetting;BroadcastPublishingPoint.BufferSetting = WMS_BUFFER_SETTING;
Property Value
A member of the WMS_BUFFER_SETTING enumeration type indicating the amount of buffering that is done on a broadcast sink.
Value |
Description |
|---|---|
WMS_BUFFER_SETTING_UNSPECIFIED |
Reserved for future use. |
WMS_BUFFER_SETTING_MINIMIZE_STARTUP_LATENCY |
Instructs the server to buffer data ahead of the client connection so that when the client connects, the server can send data to it more quickly. |
WMS_BUFFER_SETTING_PROPOGATION_LATENCY |
Minimizes the amount of data the server buffers before streaming. |
If this property fails, it throws an exception.
Number |
Description |
|---|---|
0xC00D145AL |
The publishing point has already been removed. |
Remarks
The default value is WMS_BUFFER_SETTING_MINIMIZE_STARTUP_LATENCY.
Example
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSBroadcastPublishingPoint BCPubPoint;
IWMSPublishingPoints PubPoints;
IWMSPublishingPoint PubPoint;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the IWMSPublishingPoints object.
PubPoints = Server.PublishingPoints;
// Retrieve each publishing point and retrieve the
// IWMSBroadcastPublishingPoint object.
for (int i = 0; i < PubPoints.Count; i++)
{
PubPoint = PubPoints[i];
if (PubPoint.Type ==
WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_BROADCAST)
{
BCPubPoint = (IWMSBroadcastPublishingPoint)PubPoint;
// Retrieve the buffer setting for the publishing point.
WMS_BUFFER_SETTING bsSetting;
bsSetting = BCPubPoint.BufferSetting;
break;
}
}
}
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.