Windows Media Encoder SDK banner art
PreviousNext

Recording to .asf Files

To record content to an .asf file, use the following code:

Encoder.RecordMaxSize = 5000   ' 5 MB file maximum size
Encoder.RecordFileName = "c:\Sample.asf"
Encoder.RecordStart

To stop a recording, use the following code:

Encoder.RecordStop

You can start and stop a recording at any time during an encoding session.

For more information on using the other methods and properties, see the Windows Media Encoder Automation Programming Reference.

PreviousNext

© 1999 Microsoft Corporation. All rights reserved.