Returns the type of StreamDescriptor object.
Syntax
StationFormat.StreamDescriptors(index).Type
Remarks
Stream descriptors are an enumeration of type MCMSTREAMTYPE, and have the following type values:
| Value | Mnemonic | Description |
| 0 | MCM_INVALID_STREAM | Invalid. The stream descriptor cannot be initialized. |
| 1 | MCM_AUDIO_STREAM | Audio |
| 2 | MCM_VIDEO_STREAM | Video |
| 3 | MCM_IMAGE_STREAM | Image |
| 4 | MCM_SCRIPT_STREAM | Script |
| 5 | MCM_UNKNOWN_STREAM | Unknown |
Example
Set Station1 = NSChannelMgr.Channels.Item(0)
Set Format4 = MyStation.ChannelFormats.Item(3)
Select Case Format4.StreamDescriptors(0).Type
Case 0 MsgBox "descriptor type invalid"
Case 1 MsgBox "Audio descriptor type"
Case 2 MsgBox "Video descriptor type"
Case 3 MsgBox "Image descriptor type"
Case 4 MsgBox "Script descriptor type"
Case 5 MsgBox "Unknown descriptor type"
End Select
See Also
StreamDescriptors collection, StreamDescriptor objects, StreamDescriptor.Width, StreamDescriptor.Description, StreamDescriptor.Height
© 1996-1998 Microsoft Corporation. All rights reserved.