IWMSPublishingPointLimits.PlayerCacheDeliveryRate (Visual Basic .NET)
.gif)
| Previous | Next |
IWMSPublishingPointLimits.PlayerCacheDeliveryRate (Visual Basic .NET)
The PlayerCacheDeliveryRate property specifies and retrieves the maximum content-delivery rate that a player can request.
Syntax
Integer = IWMSPublishingPointLimits .PlayerCacheDeliveryRate IWMSPublishingPointLimits .PlayerCacheDeliveryRate = Integer
Property Value
Integer containing the maximum rate at which a player can request that content be delivered to its cache. A value of 1000 means normal playback speed; a value of 1500 means 1.5 times normal speed.
If this property fails, it returns an error number.
| Number | Description |
| 0x80070057 | Integer is an invalid argument. |
Remarks
This value determines how much faster than the encoded bit rate the server is allowed to stream content to a player's cache for opportunistic streaming. Opportunistic streaming allows a player to cache additional data whenever the bandwidth of the connection exceeds the encoded bit rate of the on-demand content. This allows the player to minimize the effects of temporary reductions in network throughput. The default value is 5000, meaning content can be delivered at 5 times the encoded bit rate.
Example Code
Server As WMSServer
Dim PubPoints As IWMSPublishingPoints
Dim PubPoint As IWMSPublishingPoint
Dim Limits As IWMSPublishingPointLimits
Dim iValue As Integer
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the IWMSPublishingPoints object.
PubPoints = Server.PublishingPoints
' Retrieve information about each publishing point.
For Each PubPoint In PubPoints
' Retrieve the IWMSPublishingPointLimits
' object for the publishing point.
Limits = PubPoint.Limits
' Retrieve the limit for the cache delivery rate to clients.
iValue = Limits.PlayerCacheDeliveryRate
' Set the limit for cache delivery to clients.
Limits.PlayerCacheDeliveryRate = 5000
Next
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 |