Windows Media Services SDK banner art
PreviousNext

Channel.SetActiveStream Method

Assigns a Stream object to a station.

Syntax

NSChannelMgr.Channels(ChannelName).SetActiveStream( Stream )

Parameters

Stream

A Stream object.

Return Values

Returns an ActiveX HRESULT error code.

Example

Set MyStation = NSChannelMgr.Channels.Find( "My Channel" )
If MyStation.GetActiveStream.Alias = MonoStream.Alias Then
   MyStation.SetActiveStream StereoStream
End If

See Also

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

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.