Windows Media Services SDK banner art
PreviousNext

Channel.DistributeFrom Method

Expedites setting up distribution of content from a remote multicast manager.

Syntax

nsChannelMgr.Channels(ChannelName).DistributeFrom( Server, ChName, Filter )

Parameters

Server

A String value specifying the name of the remote multicast manager server.

ChName

A String value specifying the name of the station for which information is being imported.

Filter

An enumeration of MCMPROPFILTERS type value indicating specific types of information to exclude. Filter values can be added together to exclude multiple types of information.

Return Values

Returns an ActiveX HRESULT error code.

Remarks

The DistributeFrom method imports all of the station information from a specific station on a remote server to the current server. This information can be used to configure the current server to multicast the stream by changing the IP address and port.

The filter is an enumeration of the MCMPROPFILTERS type. These enumeration values can be combined. The following values are valid.

Value Mnemonic Description
1 MCM_IGNORE_MCASTADDR Ignore multicast address.
2 MCM_IGNORE_MCASTADAPTERADDR Ignore multicast adapter address.
4 MCM_IGNORE_AUTOARCHIVEDIR Ignore auto-archive directory.
8 MCM_IGNORE_NAME Ignore station name.

Example

' Pick up multicast distribution described in LiveShow on server
' "NSServer" but do not archive it
NSChannelMgr.Channels(1).DistributeFrom ("NSServer", "LiveShow.nsc", _
   MCM_IGNORE_AUTOARCHIVEDIR)

See Also

Channel.GetID, Channel.GetActiveStream, Channel.SetActiveStream, Channel.InitializeFromNSC, Channel.WriteNSC, Channel.Close

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.