Share via


IWMSBroadcastPublishingPoint Object (Visual Basic .NET)

You can use the IWMSBroadcastPublishingPoint object to configure and run a broadcast publishing point.

In addition to the properties and methods inherited from the IWMSPublishingPoint object, the IWMSBroadcastPublishingPoint object exposes the following properties and methods.

Property

Description

AllowClientToStartAndStop

Specifies and retrieves a Boolean value that indicates whether a stopped publishing point can be started when a client tries to receive a broadcast from it.

AllowStreamSplitting

Specifies and retrieves a Boolean value that indicates whether the stream can be split.

AnnouncementStreamFormats

Retrieves an IWMSAnnouncementStreamFormatsIWMSAnnouncementStreamFormats Object (Visual Basic .NET) containing a collection of names of media files whose formats are used in a multicast broadcast.

BroadcastDataSinks

Retrieves an IWMSPluginsIWMSPlugins Object (Visual Basic .NET) containing a collection of broadcast data sink plug-ins that can be used to send content to a client.

BroadcastStatus

Retrieves an enumeration value indicating the status of the broadcast publishing point.

BufferSetting

Specifies and retrieves a member of the WMS_BUFFER_SETTING enumeration type indicating the amount of buffering that is done on a broadcast sink.

SharedPlaylist

Retrieves an IWMSPlaylistIWMSPlaylist Object (Visual Basic .NET) for the broadcast publishing point.

UpTime

Retrieves the elapsed time, in seconds, that the publishing point has been running.

Method

Description

Announce

Updates the publishing points multicast configuration with data formats that have been added to the IWMSAnnouncementStreamFormatsIWMSAnnouncementStreamFormats Object (Visual Basic .NET).

AnnounceToNSCFile

Creates a multicast announcement (.nsc) file that is required for a client to connect to a multicast broadcast.

AnnounceToNSCStream

Retrieves an UCOMIStream object containing a file stream that can be used by a client to receive and render a broadcast.

ExportXML

Creates an XML file containing publishing point configuration data.

Start

Starts the broadcast publishing point.

StartArchive

Begins saving the streamed content to a file.

StartWithoutData

Initializes the publishing point and sends multicast beacons that enable clients to connect to a multicast when no content is being streamed.

Stop

Stops the broadcast publishing point.

StopArchive

Stops archiving the content streamed by the publishing point.

Example

The following example illustrates how to retrieve an IWMSBroadcastPublishingPoint object.

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

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim PubPoints As IWMSPublishingPoints
    Dim PubPoint As IWMSPublishingPoint
    Dim BCPubPoint As IWMSBroadcastPublishingPoint
    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

Catch excCom As COMException
    ' TODO: Handle COM exceptions.
Catch e As Exception
    ' TODO: Handle errors.
Finally
    ' TODO: Clean-up code goes here.
End Try

End Sub

See Also

Reference

IWMSPublishingPoints Object (Visual Basic .NET)

Concepts

Server Object Model (Visual Basic .NET)