Windows Media Services SDK banner art
PreviousNext

StreamDescriptor.Type Property

Returns the type of StreamDescriptor object.

Syntax

StationFormat.StreamDescriptors(Index).Type

Remarks

Stream descriptors are an enumeration of the MCMSTREAMTYPE type, and can 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 ("Invalid descriptor type"(
  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 Object, StreamDescriptor ObjectsStreamDescriptor.Width, StreamDescriptor.Description, StreamDescriptor.Height

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.