Share via


IWMSBroadcastPublishingPoint Object (C#)

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

In addition to the methods and properties 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 (C#) containing a collection of names of media files whose formats are used in a multicast broadcast.

BroadcastDataSinks

Retrieves an IWMSPluginsIWMSPlugins Object (C#) 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 (C#) 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 (C#).

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.

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;
            break;
        }
    }
}
catch (COMException comExc) {
    // TODO: Handle COM exceptions.
}
catch (Exception e) {
    // TODO: Handle exceptions.
}

See Also

Reference

IWMSPublishingPoint Object (C#)

Concepts

Server Object Model (C#)