Stream.Start Method

Starts a stream.

Syntax

NSChannelMgr.Streams(index).Start( StreamPosition )

Parameters

StreamPosition

A Long value indicating the position in the stream, in milliseconds.

Return Values

Returns an ActiveX HRESULT error code.

Remarks

A stream can start at an offset specified by the StreamPosition only if the Seekable property is set.

Example

MCM.Channels.Open( "MyStation", 7 )
Dim MyStream
' open stream "Welcome" with read access
Set MyStream = MCM.Streams.Open ("mms://nsserver/welcome.asf", _
               "Welcome", 1)
MyStation.SetActiveStream Welcome
If MyStream.Seekable Then
  MyStream.Start 5000 'skip first 5 seconds
Else
  MyStream.Start 0    'start at the beginning
End If

See Also

Streams collection, Stream objects, Stream.Stop, Stream.Close

© 1996-1998 Microsoft Corporation. All rights reserved.