IWMSPublishingPointLimits.PerPlayerRapidStartBandwidth (C#)
Previous | Next |
IWMSPublishingPointLimits.PerPlayerRapidStartBandwidth (C#)
The PerPlayerRapidStartBandwidth property specifies and retrieves the rapid starting bandwidth, in Kbps, permitted for a player connection on the publishing point.
Syntax
IWMSPublishingPointLimits .PerPlayerRapidStartBandwidth = int; int = IWMSPublishingPointLimits.PerPlayerRapidStartBandwidth;
Property Value
int containing the rapid starting bandwidth, in Kbps.
If this property fails, it throws an exception.
Number | Description |
0x80070057 | int is an invalid argument. |
Remarks
Limits the bandwidth that any single unicast player can use for accelerating the initial buffering of the content. Players requesting content encoded at a bit rate that exceeds this limit will not be able to achieve any benefit from the Rapid Start feature. The default value is 3500 Kbps.
Example Code
using Microsoft.WindowsMediaServices.Interop; using System.Runtime.InteropServices; // Declare variables. WMSServer Server; IWMSPublishingPoints PubPoints; IWMSPublishingPoint PubPoint; IWMSPublishingPointLimits Limits; int iValue; try { // Create a new WMSServer object. Server = new WMSServerClass(); // Retrieve the IWMSPublishingPoints object. PubPoints = Server.PublishingPoints; // Retrieve information about each publishing point. for (int i = 0; i < PubPoints.Count; i++) { PubPoint = PubPoints[i]; // Retrieve the IWMSPublishingPointLimits // object for the publishing point. Limits = PubPoint.Limits; // Retrieve the rapid bandwidth limit allowed for each // client connection. iValue = Limits.PerPlayerRapidStartBandwidth; // Set the rapid bandwidth limit allowed // for each client connection. Limits.PerPlayerRapidStartBandwidth = 1024; } } 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 |