Previous | Next |
Gets the state of a Stream object.
Syntax
NSChannelMgr.Streams(Index).GetState
Return Values
Returns the stream state.
Remarks
Stream states are defined in an enumeration of the MCMSTREAMSTATE type. The following values are valid.
Value | Mnemonic | Description |
1 | MCM_SS_CLOSED | Closed |
2 | MCM_SS_OPEN | Open |
3 | MCM_SS_STREAMING | Streaming |
4 | MCM_SS_RESTARTING | Restarting |
Example
Dim Streams
Set Streams = NSChannelMgr.Streams
Select Case Stream(0).GetState
Case 1 MsgBox (Stream(0).Title & " is closed.")
Case 2 MsgBox (Stream(0).Title & " is open.")
Case 3 MsgBox (Stream(0).Title & " is streaming.")
Case 4 MsgBox (Stream(0).Title & " is restarting.")
End Select
See Also
Streams Collection Object, Stream Objects, Stream.GetChannel, Stream.GetID
Previous | Next |