Previous | Next |
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.
Previous | Next |