Windows Media Encoder SDK banner art
PreviousNext

Starting the Encoder

To start Windows Media Encoder, use the following code in Visual Basic:

Dim Encoder As Object
Set Encoder = CreateObject("ASF.RealTimeEncoder")
Encoder.LoadASD("c:\SampleConfig.asd")
Encoder.Start

The object name of Windows Media Encoder is Asf.RealTimeEncoder. Once the object is created for use by Visual Basic, an ASF Stream Descriptor (.asd) file is loaded. This contains all the properties necessary for Windows Media Encoder to begin encoding. Then the Start method is called, and encoding begins.

PreviousNext

© 1999 Microsoft Corporation. All rights reserved.