WMEncBasicEdit Object
The WMEncBasicEdit object provides an Automation interface that allows you to perform postprocessing on a Windows Media file, such as modifying the attributes; specifying mark-in and mark-out times to change the length of the file; adding scripts and markers; and indexing the file so that users can use seek functions. An XML configuration file can be used to save and load certain settings.
Note You cannot perform postprocessing on protected files.
Use this object to respond to state changes.
Note Do not perform blocking actions when the encoding process is firing events. You will not be able to receive the events in a timely manner. For example, do not create a modal dialog box when events are being fired.
The WMEncBasicEdit object exposes the following properties, methods, and events.
Property | Description |
ConfigFile | Specifies and retrieves the name of the XML file containing configuration data for the basic edit process. |
Duration | Retrieves the duration of the input file. |
ErrorState | Retrieves basic edit run-time errors. |
Index | Specifies and retrieves a Boolean value indicating whether to index the input file. |
MarkIn | Specifies and retrieves a mark-in time indicating the start of the output file. |
MarkOut | Specifies and retrieves a mark-out time indicating the end of the output file. |
MediaFile | Specifies and retrieves the name of the Windows Media file to be edited. |
OutputFile | Specifies and retrieves the name of the output file. |
Profile | Retrieves the profile used by the input file that is currently loaded. |
ProgressPercent | Retrieves a value indicating the progress of the basic edit process. |
RunState | Retrieves a value indicating whether the basic edit process is running or stopped. |
Method | Description |
SaveConfigFile | Saves the basic edit attributes of the input file that is currently loaded into a new configuration file. |
SaveProfile | Saves the profile of the input file that is currently loaded as a new profile. |
Start | Starts the basic edit process to modify the input file as specified. |
Stop | Stops the basic edit process. |
Event | Description |
OnError | Receives run-time error event notices. |
OnStateChange | Indicates whether postprocessing has been started or stopped. |
See Also