This sample application, written in Microsoft® Visual Basic®, demonstrates how to set up a station and a stream for a multicast by using the API for the Windows Media Station control. By default, the source code is located in C:\Program Files\Windows Media Components\SDK\Source\Multicast\OneStrm.
The Stations variable refers to the Windows Media Station control. It is assumed that the Welcome1.asf file is installed in the Asfroot directory of your local server computer, localhost.
To create a Station, invoke the Open method of the Channels collection object.
Similarly, to create a Stream, invoke the Open method of the Streams collection object.
To start the multicast, set the Stream as the active stream of the Station.
To remove the Station and the Stream, call the Close method of the Channels and the Stream objects, respectively.