ltmmWMProfile.CreateNewStream Method

Visual Basic Example

Syntax

object.CreateNewStream(StreamType As String) As ltmmWMStreamConfig

Remarks

Creates a new stream configuration object that can be used to describe a media stream in the profile.

The string passed to this method is a CLSID string. Possible values are:

Type

String

Video

ltmmMEDIATYPE_Video

Audio

ltmmMEDIATYPE_Audio

Script

ltmmMEDIATYPE_Text

See the complete list of supported Format Types, Media Types and Media Subtypes.

Please note that creating a new stream does not automatically add it to the profile. The new stream must be created using ltmmWMProfile.CreateNewStream, and then configured using the ltmmWMStreamConfig object methods and properties. The configured stream must then be added to the profile using ltmmWMProfile.AddStream.

For more information, refer to the Microsoft documentation for IWMProfile::CreateNewStream .

Platforms

Win32, x64

See Also

Elements:

ltmmWMProfile.Description Property, ltmmWMProfile.MutualExclusionCount Property, ltmmWMProfile.Name Property, ltmmWMProfile.StreamCount Property, ltmmWMProfile.Version Property, ltmmWMProfile.AddMutualExclusion Method, ltmmWMProfile.AddStream Method, ltmmWMProfile.CreateNewMutualExclusion Method, ltmmWMProfile.GetMutualExclusion Method, ltmmWMProfile.GetStream Method, ltmmWMProfile.GetStreamByNumber Method, ltmmWMProfile.ReconfigStream Method, ltmmWMProfile.RemoveMutualExclusion Method, ltmmWMProfile.RemoveStream Method, ltmmWMProfile.RemoveStreamByNumber Method

Topics:

Multimedia Properties, Methods and Events

 

Windows Media Support