Starting the Encoder


To start the Real-Time Encoder, use the following code in Visual Basic:


Dim RTE As Object
Set RTE = CreateObject("Asf.RealTimeEncoder")
RTE.LoadASD("Sample.asd")
RTE.Start

The object name of the Real-Time Encoder is Asf.RealTimeEncoder. Once the object is created for use by Visual Basic, an ASD (ActiveX Stream Descriptor) file is loaded that contains all the properties needed by the encoder to begin encoding. Then the Start method is called and the encoding begins.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.