IWMSBroadcastPublishingPoint.BufferSetting (Visual Basic .NET)

banner art

Previous Next

IWMSBroadcastPublishingPoint.BufferSetting (Visual Basic .NET)

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.

Syntax

  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. This must be one of the following values.

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 returns an error number.

Number Description
0xC00D145AL The publishing point has already been removed.

Remarks

The default value is WMS_BUFFER_SETTING_MINIMIZE_STARTUP_LATENCY.

Example Code

Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Private Sub GetBufferSetting()

    ' Declare variables.
    Dim Server As WMSServer
    Dim PubPoints As IWMSPublishingPoints
    Dim PubPoint As IWMSPublishingPoint
    Dim BCPubPoint As IWMSBroadcastPublishingPoint
    Dim bsSetting As WMS_BUFFER_SETTING
    Dim i As Integer

Try
    ' Create the WMSServer object.
    Server = New WMSServer()

    ' Retrieve the IWMSPublishingPoints object.
    PubPoints = Server.PublishingPoints

    ' Retrieve each publishing point and retrieve the
    ' IWMSBroadcastPublishingPoint object.
    For i = 0 To Server.PublishingPoints.Count – 1

        PubPoint = PubPoints.Item(i)
        If PubPoint.Type = WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_BROADCAST Then
            BCPubPoint = PubPoint
            Exit For
        End If
    Next i

    ' Retrieve the buffer setting for the publishing point.
    bsSetting = BCPubPoint.BufferSetting










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