Windows Media Services SDK banner art
PreviousNext

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 MyStream
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 Object, Stream Objects, Stream.Stop, Stream.Close

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.